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

Ben Clifford benc at hawaga.org.uk
Tue Feb 24 20:23:12 CST 2009


On Tue, 24 Feb 2009, Mihael Hategan wrote:

> Yes, this happens because @f can be resolved before f can be, so swift
> will happily do the extractint before echo finishes.
> 
> I don't have a solution yet.

extractint probably should be able to take a file parameter, rather than a 
string, and order evaluation properly.

which I think is what readData does (though its not in the test suite, I'm 
told)

so it may be that replacing extractint(@f) with readData(f)  (note the 
lack of @) does what is desired

in which case, extractInt can be removed from the language.

-- 




More information about the Swift-devel mailing list