Re: PDD15: per-class attribute offsets

2004-03-16 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > The only time this offset will be incorrect is if the object > structure changes between the time the offset is fetched and the time > that the offset is used, which is something that needs guarding > against. Well, that's the point. You don't know in whi

Re: PDD15: per-class attribute offsets

2004-03-16 Thread Dan Sugalski
At 2:30 PM +0100 3/14/04, Leopold Toetsch wrote: Oli <[EMAIL PROTECTED]> wrote: But, even if we stop everything until all objects got their attribute list updated, any offsets previously obtained via C may still be bogus afterwards. And there is no way for the code that holds the offset to kno

Re: PDD15: per-class attribute offsets

2004-03-14 Thread Leopold Toetsch
Oli <[EMAIL PROTECTED]> wrote: > But, even if we stop everything until all objects got their attribute > list updated, any offsets previously obtained via C may > still be bogus afterwards. And there is no way for the code that holds > the offset to know that either. Good point. It seems that aft

Re: PDD15: per-class attribute offsets

2004-03-14 Thread Oli
Dan Sugalski wrote: As well as involving much finding of instances, and moving of their attribute values, this isn't thread safe (please excuse my lack of PASM syntax knowledge): Yeah, adding an attribute requires a stop-the-world action, as every object that has the modified class needs to be

Re: PDD15: per-class attribute offsets

2004-03-13 Thread Jens Rieks
Hi, On Saturday 13 March 2004 21:44, Dan Sugalski wrote: > At 9:06 PM +0100 3/13/04, Oli wrote: > >Dan Sugalski wrote: > >>>As well as involving much finding of instances, and moving of > >>>their attribute > >>>values, this isn't thread safe (please excuse my lack of PASM syntax > >>>knowledge):

Re: PDD15: per-class attribute offsets

2004-03-13 Thread Dan Sugalski
At 9:06 PM +0100 3/13/04, Oli wrote: Dan Sugalski wrote: As well as involving much finding of instances, and moving of their attribute values, this isn't thread safe (please excuse my lack of PASM syntax knowledge): Yeah, adding an attribute requires a stop-the-world action, as every object th

Re: PDD15: per-class attribute offsets

2004-03-12 Thread Dan Sugalski
At 6:14 PM + 3/12/04, Peter Haworth wrote: I have some issues with the way attributes are referenced. According to the PDD: classoffset Ix, Py, Sz Returns the offset of the first attribute for class Sz in object Py. getattribute Px, Py, Iz Returns attribute Iz of object Py and puts i

PDD15: per-class attribute offsets

2004-03-12 Thread Peter Haworth
I have some issues with the way attributes are referenced. According to the PDD: > classoffset Ix, Py, Sz > > Returns the offset of the first attribute for class Sz in object Py. > > getattribute Px, Py, Iz > > Returns attribute Iz of object Py and puts it in Px. Note that the > attribute