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

[REBOL] Re: "get" function

From: edoconnor::gmail at: 8-Nov-2010 22:44

You might find this a bit confusing at first... The colon notation (i.e., :if) refers to the value referenced to the word 'if. This notation with the colon in front of the word is called the "get" function. The example expression tells REBOL to print the result of applying native? to the value referenced by the word if. A complex value like a function has the form: <set-word:> <function body> By using the "get" form of the word (instead of the "set/assignment" form), you are ensuring that native? processes the value referenced by if-- a function body-- and not merely the word if. I hope this helps. On Mon, Nov 8, 2010 at 9:54 PM, Duke Normandin <> wrote: