Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 8:10 AM +0100 2/26/04, Leopold Toetsch wrote: >> >>*Please* don't. C<classoffset> (and attribute access) should by all >>means start with 0.
> Why? Simplifies compilers: newclass P1, "Foo" addattribute P1, "i" findclass I1, "Foo" new P2, I1 classoffset I2, P2 In static cases, where P2 is known to be a C<Foo>, attrib #0 ("i") would be always 0. That is, the C<classoffset> opcode can be omitted in that case. > No, it won't. No code should ever assume an absolute offset. That in > itself's broken. like t/pmc/objects.t? leo