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

[REBOL] Re: [words] strange thing...

From: andreas:bolka:gmx at: 26-Mar-2004 14:14

Friday, March 26, 2004, 1:41:04 PM, Robert wrote:
>>> test: ["a" "b"] > == ["a" "b"] >>> b: to-word form test > == a b >>> b > == a b >>> type? b > == word! > So it's possible to create words that have spaces?? But you can > never access it directly. Wondering if this is intended, because the > docs state other rules for words.
It's possible to create loads of "invalid" words with to-word. Similarly, for example:
>> b: to-word ","
== ,
>> b
== ,
>> type? :b
== word!
>> set :b 'test
== test
>> get :b
== test
>> :,
** Syntax Error: Invalid word -- :, ** Near: (line 1) :,
>> ,: 'test
** Syntax Error: Invalid word -- ,: ** Near: (line 1) ,: 'test -- Best regards, Andreas