TOPIC: automatic conversions
#495
automatic conversions 3 Years, 8 Months ago
I tried to do this the other day:

Number("0x123")

and got "can't convert String to Number"

This surprised me because Number("123") works.

Looking at the code, I see this is because hex and octal are only handled in SuNumber::literal which is used when compiling code. Run-time conversions are handled by SuNumber::SuNumber which does not do hex or octal.

I am not sure if this should be "fixed" or not. It has not been a problem up till now.
 
 
andrew
 
#497
Re:automatic conversions 3 Years, 8 Months ago
Of course this is a bug (and every bug should be 'fixed' in a beautiful software as Suneido), but in the bugs list I think this is one of the less important...

P.S.: I have Visual C++ 2005 Express Edition. Can I compile the Suneido source code in this environment?
 
 
Mauro
 
#498
Re:automatic conversions 3 Years, 8 Months ago
re. VC 2005 Express see Notes on Compiling Suneido with VC Express 2005 in Internals & Enhancements
 
 
Last Edit: 2008/02/20 17:52 By sunadmin. Reason: update forum link
 
andrew
 
#500
Re:automatic conversions 3 Years, 8 Months ago
Thank you! :)
 
 
Mauro