[Swift-user] trouble with tutorial

Hodgess, Erin HodgessE at uhd.edu
Tue Jun 16 16:49:25 CDT 2009


Ok.

I've used trace; thought it was only for integers/numeric.

Thanks,
Erin


Erin M. Hodgess, PhD
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgesse at uhd.edu



-----Original Message-----
From: Michael Wilde [mailto:wilde at mcs.anl.gov]
Sent: Tue 6/16/2009 4:47 PM
To: Hodgess, Erin
Cc: swift-user at ci.uchicago.edu
Subject: Re: [Swift-user] trouble with tutorial
 
Erin,

The print() built-in procedure has been replaced by one called "trace()".

Replace print with trace in:

print("extract int value ", at extractint(a[v+1]));

- Mike


On 6/16/09 4:39 PM, Hodgess, Erin wrote:
> Hi all!
> 
> This swift procedure doesn't seem to like the print statement(?)
> 
> 
> [erin at communicado swift1]$ swift -tc.file tc.data fold9.swift
> Could not start execution.
>         Compile error in procedure invocation at line 21: Procedure 
> print is not declared.
> [erin at communicado swift1]$ cat fold9.swift
> type counterfile; 
>  
> (counterfile t) echo(string m) {  
>   app { 
>     echo m stdout=@filename(t); 
>   } 
> } 
>  
> (counterfile t) countstep(counterfile i) { 
>   app { 
>     wcl @filename(i) @filename(t); 
>   } 
> } 
>  
> counterfile a[]  <simple_mapper;prefix="foldout">; 
>  
> a[0] = echo("793578934574893"); 
>  
>         iterate v { 
>   a[v+1] = countstep(a[v]); 
>  print("extract int value ", at extractint(a[v+1])); 
> } until (@extractint(a[v+1]) <= 1); 
> [erin at communicado swift1]$ cat tc.data
> #NOTE WELL: fields in this file must be separated by tabs, not spaces
> #           and there must be no trailing whitespace at the end of each 
> line.
> #
> # sitename      app     pathname        (ignored)       (ignored)       
> profiles
> localhost       echo    /bin/echo       INSTALLED       INTEL32::LINUX  null
> teraport        echo    /bin/echo       INSTALLED       INTEL32::LINUX  null
> localhost       translate       /usr/bin/tr     INSTALLED       
> INTEL32::LINUX  null
> localhost       R       /home/erin/R-2.9.0/bin/R        INSTALLED       
> INTEL32::LINUX  null
> localhost       wc      /usr/bin/wc     INSTALLED       INTEL32::LINUX  null
> localhost       convert /usr/bin/convert        INSTALLED       
> INTEL32::LINUX  null
> localhost       wcl     /home/erin/swift1       INSTALLED       
> INTEL32::LINUX  null
> 
> 
> 
> Erin M. Hodgess, PhD
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: hodgesse at uhd.edu
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20090616/fe990f9d/attachment.html>


More information about the Swift-user mailing list