[REBOL] Re: Context - code included- 2nd version
From: lmecir:mbox:vol:cz at: 16-Sep-2001 14:53
Hi Romano,
> > 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:"
> ==: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
doesn't
> > 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
result?
> ---
> Ciao (my english is bad)
> Romano
Hmm, i didn't check it, but it really differs from:
word1: 'word1
word2: use [word2] ['word2]
and I don't know why.
Ciao
Ladislav