<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [Swift-user] trouble with tutorial</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Ok.<BR>
<BR>
I've used trace; thought it was only for integers/numeric.<BR>
<BR>
Thanks,<BR>
Erin<BR>
<BR>
<BR>
Erin M. Hodgess, PhD<BR>
Associate Professor<BR>
Department of Computer and Mathematical Sciences<BR>
University of Houston - Downtown<BR>
mailto: hodgesse@uhd.edu<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Michael Wilde [<A HREF="mailto:wilde@mcs.anl.gov">mailto:wilde@mcs.anl.gov</A>]<BR>
Sent: Tue 6/16/2009 4:47 PM<BR>
To: Hodgess, Erin<BR>
Cc: swift-user@ci.uchicago.edu<BR>
Subject: Re: [Swift-user] trouble with tutorial<BR>
<BR>
Erin,<BR>
<BR>
The print() built-in procedure has been replaced by one called "trace()".<BR>
<BR>
Replace print with trace in:<BR>
<BR>
print("extract int value ",@extractint(a[v+1]));<BR>
<BR>
- Mike<BR>
<BR>
<BR>
On 6/16/09 4:39 PM, Hodgess, Erin wrote:<BR>
> Hi all!<BR>
><BR>
> This swift procedure doesn't seem to like the print statement(?)<BR>
><BR>
><BR>
> [erin@communicado swift1]$ swift -tc.file tc.data fold9.swift<BR>
> Could not start execution.<BR>
> Compile error in procedure invocation at line 21: Procedure<BR>
> print is not declared.<BR>
> [erin@communicado swift1]$ cat fold9.swift<BR>
> type counterfile;<BR>
> <BR>
> (counterfile t) echo(string m) { <BR>
> app {<BR>
> echo m stdout=@filename(t);<BR>
> }<BR>
> }<BR>
> <BR>
> (counterfile t) countstep(counterfile i) {<BR>
> app {<BR>
> wcl @filename(i) @filename(t);<BR>
> }<BR>
> }<BR>
> <BR>
> counterfile a[] <simple_mapper;prefix="foldout">;<BR>
> <BR>
> a[0] = echo("793578934574893");<BR>
> <BR>
> iterate v {<BR>
> a[v+1] = countstep(a[v]);<BR>
> print("extract int value ",@extractint(a[v+1]));<BR>
> } until (@extractint(a[v+1]) <= 1);<BR>
> [erin@communicado swift1]$ cat tc.data<BR>
> #NOTE WELL: fields in this file must be separated by tabs, not spaces<BR>
> # and there must be no trailing whitespace at the end of each<BR>
> line.<BR>
> #<BR>
> # sitename app pathname (ignored) (ignored) <BR>
> profiles<BR>
> localhost echo /bin/echo INSTALLED INTEL32::LINUX null<BR>
> teraport echo /bin/echo INSTALLED INTEL32::LINUX null<BR>
> localhost translate /usr/bin/tr INSTALLED <BR>
> INTEL32::LINUX null<BR>
> localhost R /home/erin/R-2.9.0/bin/R INSTALLED <BR>
> INTEL32::LINUX null<BR>
> localhost wc /usr/bin/wc INSTALLED INTEL32::LINUX null<BR>
> localhost convert /usr/bin/convert INSTALLED <BR>
> INTEL32::LINUX null<BR>
> localhost wcl /home/erin/swift1 INSTALLED <BR>
> INTEL32::LINUX null<BR>
><BR>
><BR>
><BR>
> Erin M. Hodgess, PhD<BR>
> Associate Professor<BR>
> Department of Computer and Mathematical Sciences<BR>
> University of Houston - Downtown<BR>
> mailto: hodgesse@uhd.edu<BR>
><BR>
><BR>
> ------------------------------------------------------------------------<BR>
><BR>
> _______________________________________________<BR>
> Swift-user mailing list<BR>
> Swift-user@ci.uchicago.edu<BR>
> <A HREF="http://mail.ci.uchicago.edu/mailman/listinfo/swift-user">http://mail.ci.uchicago.edu/mailman/listinfo/swift-user</A><BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>