[REBOL] Re: Prefix colon question
From: nitsch-lists:netcologne at: 2-Jun-2002 4:44
Am Samstag, 1. Juni 2002 23:03 schrieb Tim Johnson:
> * Jason Cunliffe <[jason--cunliffe--verizon--net]> [020601 12:30]:
> > > Could anyone help to enlighten me here?
> >
> > It's the same as "get"
> > I that the key is that everything in REBOL is a value..
> > I can't give you deep golden answers but try this:
>
> [....]
> Thanks Jason: I understand that fully. Let me 'probe deeper:
> what's the difference between:
>
> test: func[a b /local c][c: a + b c]
> and
> test: func[a b /local c][c: a + b :c]
>
> And perhaps there isn't any difference in my example
> but I think I do see :my-word at the 'return point in many
> functions
>
>> f: func[]["something"]
>> probe f
something
== "something"
>> probe :f
func []["something"]
for most datatypes [f] and [:f] are the same, but for datatypes
which get executed [f] executes and [:f] returns.
so if you move functions or pathes or parens,
pass them with [:f].
(with new betas only remaining "hot" datatype is function afaik)
> Thanks Again!
-volker