Not a follow up, but for those that are interested in little
REBOL "hacks", hidden object variables, etc, try playing around with
this:
x: make object! [a: 1 b: 2]
x/self: make object! [a: 11 b: 22]
And now there's some hidden vars in X.
x/a
x/self/a
Nothing truly mysterious here. Self is a word, that by default
refers to the self same object. The word can be used to point to
another object as well. If self instead points somewhere else, that's
okay, but self won't be copied if you clone that object.
Now for some mysterious stuff:
x: make object! [self: make self [a: 1 b: 2] c: 3 d: 4]
What do you suppose is happening here? :-) It's a little
mystery. (-:
-jeff
- [REBOL] [REBOL]hidden variables in objects? Re:(2) lmecir
- [REBOL] [REBOL]hidden variables in objects? Re:(3) giesse
- [REBOL] [REBOL]hidden variables in objects? Re:(... tim
- [REBOL] [REBOL]hidden variables in objects? ... lmecir
- [REBOL] hidden variables in objects? Re:(6) brian . hawley
- [REBOL] hidden variables in objects? Re:(6) giesse
- [REBOL] hidden variables in objects? Re:(7) carl
- [REBOL] hidden variables in objects? Re:(8) tim
- [REBOL] hidden variables in objects? Re:(8) Petr . Krenzelok
- [REBOL] Re: hidden variables in objects? Re:... giesse
- [REBOL] Re: hidden variables in objects? Re:... whip
- [REBOL] Re: hidden variables in objects? Re:... giesse
- [REBOL] hidden variables in objects? Re:(11) whip
- [REBOL] hidden variables in objects? Re:(12) larry
- [REBOL] hidden variables in objects? Re:(13) whip
- [REBOL] hidden variables in objects? Re:(12) giesse
- [REBOL] hidden variables in objects? Re:(13) whip
- [REBOL] hidden variables in objects? Re:(14) icimjs
- [REBOL] hidden variables in objects? Re:(15) lmecir
- [REBOL] hidden variables in objects? Re:(16) icimjs
- [REBOL] hidden variables in objects? Re:(17) lmecir
