[REBOL] Confused about "word" forms
From: dukeofperl:ml1 at: 27-Nov-2010 21:52
Hello List....
First of all, the term "form" is confusing to me. Would someone give
me an appropriate synonym.
I understand that a Rebol "word" is not a variable bound to a datatype
as in other programming languages. It is merely the "name" of a
container which can hold any Rebol datatype; which itself has the
word!
datatype.
Assuming the Rebol word "age", if I want to have the name of the
container returned to me, I would use the syntax (form) 'age. Correct?
Where does the "lit-word" datatype come in? I don't get the
terminology!
If I want to have assign something to the "age" container, I would
use:
age: 35
is the ":" the "set-word!" datatype.
If I want the "contents" of age, I would use:
:age and have 35 returned to me. is the prefixed ":" the "get-word!"
datatype?
I'm getting all balled up with the terminology - how is an "action" -
like "get the contents of the word called "age", a datatype?
Also, what's the difference between using:
age: 45
SET age 45