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

[REBOL] Re: [inconsistency in object?]

From: petr::krenzelok::trz::cz at: 9-Mar-2002 0:23

Holger Kruse wrote:
>On Fri, Mar 08, 2002 at 08:12:39PM +0100, pat665 wrote: > >>Hi rebollers >> >>It seems that 'self exists in any object. >> >> o: make object! [ >> a: 1 >> b: 2 >> c: 3 >> d: does [print [a b c]] >> ] >> >> >> first o >> == [self a b c d] >> >>How come that rebol/words have no 'self ? >> > >Implementation detail :). >
heh, but placing self as first member of object word structure makes code uglier. We could use "third o" (third is e.g. used for structure datatype, or even functions) to get self, instead of current situation, where you have to use "foreach next first o ...", if you want to iterate thru obj. words ... another implementation detail? :-) -pekr-