[words] strange thing...
[1/2] from: robert::muench::robertmuench::de at: 26-Mar-2004 13:41
Hi, I just discovered:
>> 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.
--
Robert M. M=FCnch
Management & IT Freelancer
Mobile: +49 (177) 245 2802
http://www.robertmuench.de
[2/2] 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"]
<<quoted lines omitted: 7>>
> 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
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted