Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] to-pair oddity

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