Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: [inconsistency in object?]

From: hallvard:ystad:helpinhand at: 8-Mar-2002 21:50

Dixit pat665 (20.12 08.03.2002):
>How come that rebol/words have no 'self ?
There actually _is_ a 'self in system/words (or rebol/words, if you fancy), but it seems to be undefined (at least with my prob:, but that may be my mistake, of course)... That's strange, indeed. 'Self may be set to any value. Did you know? Let's probe your example: o: make object! [ a: 1 b: 2 c: 3 d: does [print [a b c]] ]
>> probe o
make object! [ a: 1 b: 2 c: 3 d: func [][print [a b c]] ] Now let's make a new one:
>> p: make o [
self: "007 Object. Secret Object." ]
>> probe p
== "007 Object. Secret Object." ~H