[REBOL] Re: Prefix colon question
From: jason:cunliffe:verizon at: 1-Jun-2002 16:23
> 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:
>> pwd: :what-dir
>> pwd
== %/C/rebol/view/
>> source pwd
pwd: func [
"Prints the active directory path"
][
system/script/path
]
now clear it and try again using get
>> pwd: none
== none
>> pwd: get 'what-dir
>> source pwd
pwd: func [
"Prints the active directory path"
][
system/script/path
]
>> ? get
USAGE:
GET word /any
DESCRIPTION:
Gets the value of a word.
GET is a native value.
ARGUMENTS:
word -- Word to get (Type: any-word)
REFINEMENTS:
/any -- Allows any type of value, even unset.
>> what-dir
== %/C/rebol/view/
>> source what-dir
what-dir: func [
"Prints the active directory path"
][
system/script/path
]
./Jason