to-pair oddity
[1/2] from: carl::cybercraft::co::nz at: 12-Oct-2002 23:16
I noticed today that to-pair returns none if it can't resolve a string
down to a pair. This isn't consistant with what happens with
to-integer though...
>> to-integer "blah"
** Script Error: Invalid argument: blah
** Where: to-integer
** Near: to integer! :value
>> to-pair "blah"
== none
Is this intended behaviour?
--
Carl Read
[2/2] from: greggirwin:mindspring at: 12-Oct-2002 10:16
Hi Carl,
I don't know if it's intentional or not. Might be worth a shout to feedback
though.
--Gregg