[REBOL] Re: Lit-words
From: lmecir:vol:cz at: 17-Nov-2009 14:50
Nick Antonaccio napsal(a):
> Can anything be done to make the following definition of 'greater work
> properly?
>
> as-lit-word: func ['word [any-word!]] [to lit-word! word]
> greater: as-lit-word >
>
> either (1 greater 100) [print "yes"][print "no"]
>
As Gabriele pointed out, R2 does not support other words, than the
official operators
for infix. But, if you don't mind to use prefix,
then you can do e.g.:
maggiore?: :greater?
maggiore? 1 2 ; == false
maggiore? 2 1 ; == true
-L