[Swift-devel] Problem using @extractint() on derived file

Michael Wilde wilde at mcs.anl.gov
Tue Feb 24 15:07:24 CST 2009


This script:

---

type file;

app (file out) echo (string s) { echo s stdout=@out; }

file f<"a">;
int i;

f = echo("123");
i = @extractint(@f);
trace("i=", i);

---

produces:

Swift svn swift-r2552 cog-r2303 

 

RunID: 20090224-1455-k1vj4uy7 

Progress: 

Execution failed: 

         Reading integer content of file 

Caused by: 

         a (No such file or directory) 



---

I seem to get the same behavior from readData, and the same if I 
explicitly specify "a" as the argument to @extractint();

Is this because @extractint() is not waiting for "f" to get produced?

Ive extracted this example while debugging a script that uses an app to 
test the termination condition of an iterate loop.

- Mike



More information about the Swift-devel mailing list