[squeak-dev] Re: The Trunk: Kernel-ar.335.mcz
Andreas Raab
andreas.raab at gmx.de
Tue Dec 22 12:45:39 UTC 2009
Igor Stasenko wrote:
> 2009/12/22 Andreas Raab <andreas.raab at gmx.de>:
>> Unfortunately, I'm having a bit of a problem here and will have to redo.
>> Anyone know if MC *ever* calls initialize twice on classes?
>>
> you can change the code to check & not run conversion again in #initialize
> if it alredy converted.
> Then there will be no problem how many times it calls initialize.
Actually the problem was that running the convertion created the new
trailerClass method. Of course I tried this before committing and as a
result committed the wrong version. Lesson: Don't use 'self compile:' in
initializers. Class vars can be used to good effect here.
(source.squeak.org now seems to have to a grinding halt - I may have to
wait before I can commit the cleanup changes since I have another
appointment coming up rapidly)
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|