Hello [EMAIL PROTECTED]!

On 11-Dic-99, you wrote:

 l>>> b: to-get-word 'a
 l> == :a
 l>>> to-word :b
 l> == a
 l>>> c: to-set-word 'a
 l> == a:
 l>>> to-word :c
 l> ** Script Error: a needs a value.
 l> ** Where: to word! value

 l> Isn't it a little bit inconsistent?

Yup. It's a bug in to-word. Look:

>> source to-word
to-word: func ["Converts to word value." value "Value to convert"][to word! value]

Let's try with:

to-word: func [
    "Converts to word value." 
    value "Value to convert"
] [ 
    to word! :value
]

>> b: to-set-word 'a
== a:
>> to-word :b                
== a

Regards,
    Gabriele.
-- 
o--------------------) .-^-. (----------------------------------o
| Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila |
| GIESSE on IRC     \ \-\_/-/ /  http://www.amyresource.it/AGI/ |
o--------------------) `-v-' (----------------------------------o

Reply via email to