Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

numbers vs. strings: msg#00015

Subject: numbers vs. strings
Hi. I sent this to #sisc but I keep missing you guys so I'll post it here. Part of our intro CS curriculum requires running + on strings. I didn't write it so I can't defend it, but it's my job to make it work. And it used to:

SISC (r1.4.1) - main
 (+ 1 "2")
3

SISC (1.8.1-alpha) - main
#;> (+ 1 "2")
Error in +: expected type number, got '"2"'.
#;>


This is with STRICT_R5RS turned off. Is it possible to make strings become numbers automagically like before? As an option or whatever.




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0


<Prev in Thread] Current Thread [Next in Thread>