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

[REBOL] Blocks and parens treated the same by parse's into?

From: carl:cybercraft at: 4-Apr-2002 19:36

It's not mentioned in the Core Guide AFAIK, but parse's into word seems to treat parens as if they were blocks. (Meaning in the input block). Here's the standard format...
>> parse [1 ["a"]] [number! into [string!]]
== true
>> parse [1 [1]] [number! into [string!]]
== false and here it is with the into blocks replaced by parens which seems to behave the same...
>> parse [1 ("a")] [number! into [string!]]
== true
>> parse [1 (1)] [number! into [string!]]
== false Is this intended behaviour that's safe to use or should it be treated as an anomaly that may change in future versions of REBOL? -- Carl Read