[REBOL] Re: Confused about "word" forms
From: dukeofperl:ml1 at: 2-Dec-2010 12:24
-Henrik Mikael Kristensen
Instead of replying to each message, I'll thank you all right here and
now for your detailed responses. Much appreciated!
Here then is what I learned from you guys so far, about REBOL words:
a plain, old word like "age", or "name" or whatever is - if not
recognized by REBOL as part of it's built-in vocabulary - just that, a
word with a data-type of "word!"
This symbol, or identifier, or plain, old "word" can be used in
different was, giving the word a new meaning each time.
Appended with a colon - like age: - morphs "age" from a simple word!
data-type, to a set-word! data-type. This is how values get assigned
prepending with a colon - like :age - morphs "age" into a get-word!
data-type, which returns the value assigned to "age"
prepending with an apostrophe - like 'age - morphs "age" into a
lit-word! data-type, which when executed returns its own name - "age"
Using "age" by itself at the core prompt, also returns the value
assigned to age.
How did I do?
So what's the diff between using "age" by itself, and ":age" to scoop