[Swift-devel] Problem with @extractint?

Michael Wilde wilde at mcs.anl.gov
Mon Oct 8 12:41:45 CDT 2007


It seems that if I extractint from a file that is static it works fine, 
but if I extract from a file that I just derived and assign to an int, 
it hangs.

seems like swift is (or I am) getting confused in the data flow 
dependencies when the value of extractint is assigned.

On 10/8/07 9:25 AM, Michael Wilde wrote:
> @extractint is behaving unpredictably for me.
> 
> In the following script:
> -- 
> type file;
> 
> int i;
> file f;
> 
> (file r1 ) set1 ( ) {
>   app { set1 @r1 ; }
> }
> 
> file f <"varf.value">;
> f = set1();
> print("f=", at extractint(f));  // this print works when the next assign
>                              // stmt is commented out
> 
> // i=@extractint(f); // Program works when you comment out this line,
>                   // hangs otherwise
> //print("i=",i);
> 
> -- 
> it works if i dont try to assign the value of @extractint to an int but 
> hangs otherwise.
> 
> set1 is:
> echo 77777 >$1
> 
> 
> Ive tried various other patterns, and some seem to work; I dont know if 
> I missed a data flow issue here or if @extractint has a problem.
> 
> Any advice while I continue to debug this?
> 
> _______________________________________________
> 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