[Pharo-dev] Weird issue with removing instance vars from class def: instance vars jumbled
norbert at hartl.name
Tue Oct 1 04:12:51 EDT 2013
Am 01.10.2013 um 09:37 schrieb Marcus Denker <marcus.denker at inria.fr>:
> On Oct 1, 2013, at 9:34 AM, "phil at highoctane.be" <phil at highoctane.be> wrote:
>> Still, why does it occur ? Normal ? I experienced that on a class with quite a number of instVars.
> This seems to be a bug. When you remove / add inst vars, the offset of all those behind need to change
> (and all in the subclass).
> This is done by the ClassBuilder by recompiling (there is code somewhere to do it more intelligently,
> by using bytecode level IR to patch the offsets, but this is not yet active).
> We need some reproducible case to fix the problem… because normally the class builder does the right thing,
> I wonder in which case there is a problem.
I have the same opinion that the behavior changed quite a bit. E.g. I can't remember that it was allowed to have shadowed instance variabels. Nowadays there is not even a warning.
More information about the Pharo-dev