Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Best way to alias words

From: g:santilli:tiscalinet:it at: 10-Nov-2001 15:57

Hello Gregg! On 09-Nov-01, you wrote: GI> ** Script Error: Alias word is already in use: help GI> ** Where: context GI> ** Near: alias '? "help" Aliases are very low level and are valid for any context. Once you set up an alias, REBOL will consider the two spellings as if they were the exact same word (even if the word is not defined in any context). Some examples...
>> alias 'one "uno"
== uno
>> 'one = 'tow
== false
>> 'one = 'uno
== true
>> parse [one] ['two]
== false
>> parse [one] ['uno]
== true
>> f: func [/one] [print one] >> f/one
>> f/uno
true Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila --