[Swift-devel] Some observations

Tiberiu Stef-Praun tiberius at ci.uchicago.edu
Sun Jul 27 15:40:30 CDT 2008


I was trying to read into swift the contents of a file which contained
a float (e.g. 0.415599405693).
It has been suggested that I use readData.
If did not work (some error about unable to cast to java.lang.Integer)
whatever output type I was using:
float x=readData(file);
int x=readData(file);
string x=readData(file);

However, completely unexpectedly, it worked with @extractint(file),
and it even returned the correct float value.

This is abit confusing, but at least I got my problem solved.

Tibi

PS: it would be really-really good to have swift work with cygwin.

-- 
Tiberiu (Tibi) Stef-Praun, PhD
Computational Sciences Researcher
Computation Institute
5640 S. Ellis Ave, #405
University of Chicago
http://www-unix.mcs.anl.gov/~tiberius/



More information about the Swift-devel mailing list