tags:

views:

27

answers:

2

Why does clipboard and system/words/clipboard points to 2 different value ?

>> clipboard
** Script Error: clipboard has no value
** Near: clipboard
>> system/words/clipboard
>> value? 'clipboard
== false
>> value? 'system/words/clipboard
== true
>>

Then how can I use value? within a func which uses clipboard as refinement if I can't test it on system/words/clipboard ?

+1  A: 
value? in system/words 'clipboard
Gregory Higley
Better than mine below ;)
Rebol Tutorial
A: 

Found a solution

unset? system/words/clipboard

but this is hack, Gregory's solution is more elegant.

Rebol Tutorial
It's not a hack, but it only works if you know that `clipboard` exists in `system/words`.
Gregory Higley