[REBOL] Re: Context - code included- 2nd version
From: lmecir:mbox:vol:cz at: 16-Sep-2001 14:53
> > Moreover, your implementation has got a "hole" :
> > word: to word! "nonsense:" ; == nonsense:
> > type? word ; == word!
> > type? first to block! mold :word ; == set-word!
> I know it. I wanted just to ask to explain this thing:
> probe to word! ":a:"
> >> probe to block! ":a:"
> ** Syntax Error: Invalid word -- :a:
> ** Near: (line 1) :a:
> Is it a bug of to-word!, or i don't understand something?
The problem is, that TO WORD! or MAKE WORD! can create some "artificial"
words that the Rebol parser normally recognizes as different datatypes. We
may consider that to be an "advantage" or a "disadvantage", but RT can claim
it to be a feature, not a bug.
> > No, it isn't. It resembles one of my older implementations, but it
> > yield the correct result e.g. in this case:
> > word1: 'word1
> > word2: use 'word2 ['word2]
> Now i'll check code, but yours last published function get the right
> Ciao (my english is bad)
Hmm, i didn't check it, but it really differs from:
word2: use [word2] ['word2]
and I don't know why.