On 16 janv. 2014, at 16:58, Marcus Denker <marcus.denker@inria.fr> wrote:Hello,
I was looking into that, the first (maybe only) reason is that the new class builder
can not make anonymous subclasses of classes with ByteLayoutIs that really a bug?Should it really be possible to subclass a class that has a byte layout with a class that has a fixed layout?
Because:AnonymousClassInstaller make: [ :builder |��builder��superclass: NBExternalTypeValue ]raises IncompatibleLayout but:doesn't.��AnonymousClassInstaller make: [ :builder |��builder��superclass: NBExternalTypeValue;layoutClass: ByteLayout ]
A simple fix is to take the same layout class than the superclass by default instead of FixedLayout, isn't it?For example with lazy initialization:��SlotClassBuilder>>#layoutClass^ layoutClass ifNil: [ layoutClass := superclass layout class ]