[EMAIL PROTECTED] wrote:

> >If you want to see the structure of system object, use Bo's
> >%browse-system.r script .... If you don't have it, I can send you a copy
> >...
>
> Yes please.  In the case of 'simple things should be simple
> to do':
>
> probe system/options/args
>  gets args
>
> probe system/options
>  shows the options object
>
> probe system
>  crashes rebol and requires me to use browse-system.r script???

IIRC, it has something to do with REBOL objects structure? In REBOL, even
functions consists of just two blocks:

probe first :append
probe second :append

while with objects:

obj: make object! [bla: "aaaaa"]

->> probe first :obj
[self bla]
== [self bla]
->> probe second :obj
[
    make object! [
        bla: "aaaaa"
    ] "aaaaa"]
== [
    make object! [
        bla: "aaaaa"
    ] "aaaaa"]
->>

can you see 'self while probing first :obj? IIRC, REBOL object structure
changed during alpha-to-REBOL1.x days, as during the alpha REBOL stage,
reference to 'self was obtained by applying 'third to appropriate object.

I don't know why they changed it, but let's believe RT had reasons to do so,
while producing not so logical code, e.g.:

foreach word next first obj [print word]
foreach value next second obj [print word]

you have to skip one item, because of reference to 'self ....

PS: sending browse-system.r in private email ....

-pekr-

Reply via email to