Weakness weakness in latest ClassBuilder
Tim Rowledge
tim at sumeru.stanford.edu
Sat Mar 15 01:13:41 UTC 2003
Pooh. This time maybe I'll attach the debuglog....
tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SqueakDebug.log
Type: application/text
Size: 4014 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030314/c1a0d041/SqueakDebug.bin
-------------- next part --------------
On Friday, March 14, 2003, at 05:12 PM, Tim Rowledge wrote:
> In 3.4 with or without the recent update that improves the
> ClassBuilder there seems to be a problem relating to weak subclasses.
>
> My testcase is to recompile Array. This fails with the attached
> debuglog because the code checks to see if the type of the WeakArray
> subclass of Array is the same as the type of the intended new class
> Array. It gets a bit hard to describe but I hope that makes sense.
> My guess (and it's only a guess for now) is that the code
> newType ~~ #normal ifTrue:
> ["And check if the immediate subclasses of oldClass can keep its
> layout"
> oldClass subclassesDo:[:sub|
> oldType _ sub typeOfClass.
> oldType == newType ifFalse: [
> self error: sub name,' cannot be recompiled'.
> ^ false]]].
> probably ought to try to understand that #weak is a subform of
> #variable. Or whatever.
>>
> tim
> --
> tim at sumeru.stanford.edu
>
>
tim
--
tim at sumeru.stanford.edu
More information about the Squeak-dev
mailing list
|