Rebol Tutorial
Rebol Tutorial

Reputation: 2754

Problem with value? and system/words/var in Rebol

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 ?

Upvotes: 1

Views: 97

Answers (2)

Rebol Tutorial
Rebol Tutorial

Reputation: 2754

Found a solution

unset? system/words/clipboard

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

Upvotes: 0

Gregory Higley
Gregory Higley

Reputation: 16558

value? in system/words 'clipboard

Upvotes: 2

Related Questions