<!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>still stuck on fold9.swift</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Ok.  We're back to fold9.swift again, but it's saying that there are multiple writers.<BR>
<BR>
These are in /home/erin/swift1.<BR>
<BR>
Is it because of the recursive nature of the a[v+1] setup, maybe?<BR>
<BR>
thanks,<BR>
Erin<BR>
<BR>
<BR>
<BR>
[erin@communicado swift1]$ swift -tc.file tc.data fold9.swift<BR>
Could not start execution.<BR>
        variable a has multiple writers.<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>
 trace(@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 line.<BR>
#<BR>
# sitename      app     pathname        (ignored)       (ignored)       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       INTEL32::LINUX  null<BR>
localhost       R       /home/erin/R-2.9.0/bin/R        INSTALLED       INTEL32::LINUX  null<BR>
localhost       wc      /usr/bin/wc     INSTALLED       INTEL32::LINUX  null<BR>
localhost       convert /usr/bin/convert        INSTALLED       INTEL32::LINUX  null<BR>
localhost       wcl     /home/erin/swift1       INSTALLED       INTEL32::LINUX  null<BR>
[erin@communicado swift1]$<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>
</FONT>
</P>

</BODY>
</HTML>