[Swift-devel] Some observations

Ben Clifford benc at hawaga.org.uk
Sun Jul 27 23:17:04 CDT 2008


can't be *completely* unexpectedly, as I think I told you @extractint 
would work for this some time ago.

our present handling of numerical types is lame. I'll look at tidyups. In 
the meantime, filing this message as a bug would be a nice thing to do.

On Sun, 27 Jul 2008, Tiberiu Stef-Praun wrote:

> 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.
> 
> 



More information about the Swift-devel mailing list