[REBOL] Re: "get" function
From: dukeofperl:ml1 at: 9-Nov-2010 8:54
MESSAGE RE-FORMATED TO BOTTOM-POSTING
On Mon, 8 Nov 2010, Ed O'Connor wrote:
> On Mon, Nov 8, 2010 at 9:54 PM, Duke Normandin <dukeofperl-ml1.net> wrote:
> > From "REBOL/Core Users Guide - Chapter 4 - Expressions":
> > [quote]
> > print native? :if
> > true
> > Here the get returns the function for if.
> > [/quote]
> > Is this a typo? I don't see the "get" function being used. Is it
> > implied in native?
> 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.
So, in a nutshell, `:blah' is identical to `get blah'?