[Swift-devel] Problem with @extractint?
Michael Wilde
wilde at mcs.anl.gov
Mon Oct 8 13:40:23 CDT 2007
Attached, with source out kml and logs for both working and hanging cases.
On 10/8/07 12:45 PM, Mihael Hategan wrote:
> Send the .kml file.
>
> On Mon, 2007-10-08 at 12:41 -0500, Michael Wilde wrote:
>> 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
>>>
>>>
>> _______________________________________________
>> Swift-devel mailing list
>> Swift-devel at ci.uchicago.edu
>> http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel
>>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t26.tar
Type: application/x-tar
Size: 30720 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20071008/cb7236b2/attachment.tar>
More information about the Swift-devel
mailing list