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

Mihael Hategan hategan at mcs.anl.gov
Tue Feb 24 15:12:32 CST 2009


Where is that file with respect to:
- the script
- the place you are running this from

On Tue, 2009-02-24 at 15:07 -0600, Michael Wilde wrote:
> 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
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel




More information about the Swift-devel mailing list