---- On Wed, 10 May 2006, Gabriele Santilli
([EMAIL PROTECTED]) wrote:
> No. An object is a context, it contains word bindings,
not
> "aspects". It may be ok if you want to change all the
terminology,
> but be careful about not changing the meaning too, as that
won't
> work. ;)
1) Context means ... CON = "with" text = "body of word"
2) REBOL MAKES context from a Prototype ("OBJECT") definitional.
UNTIL REBOL MAKES context, the script of REBOL is just symbols
without meaning.
>> meaningless-body: [a: 23 b: "see, told you"]
== [a: 23 b: "see, told you"]
>> object-with-context-MADE-by-REBOL: make object! meaningless-b
ody
>> clean-p object-with-context-MADE-by-REBOL
a 23
b see, told you
>> probe object-with-context-MADE-by-REBOL
make object! [
a: 23
b: "see, told you"
]
>> first object-with-context-MADE-by-REBOL
== [self a b]
>> second object-with-context-MADE-by-REBOL
== [make object! [
a: 23
b: "see, told you"
] 23 "see, told you"]
>> object-with-context-MADE-by-REBOL/b
== "see, told you"
A REBOL prototype ("object") is a structure that supports these:
1. defining aspects
2. naming defined aspects
3. accessing named aspects using path notation
In other words, a REBOL prototype ("object") is just a fancy
block with a fancy way to "name the elements" inside that block
and access those elements inside that block using named path
notation
>> object-with-context-MADE-by-REBOL/b
== "see, told you"
Ordinary blocks only allow for IMPLICIT naming of elements
contained therein, which requires one to
1) remember their sequence
2) use any of these for retrieval:
ordinal phrases (first, second, third ... [ ])
pick phrases (pick [ ] n) *
select phrases (select [ ] 'selector-word)
path phrases ([ ] /n) *
extract phrases (extract [ ] n) and (extract/index [ ] n m) *
* where n = any integer; m = any integer
________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.