[squeak-dev] Re: Recent MC doesn't support loading classes with nil superclass?

Julian Fitzell jfitzell at gmail.com
Fri Sep 25 07:15:27 UTC 2009


Not if you want portability... :)

I was just struggling with this issue yesterday while porting Magritte
to VAST, actually... I'm thinking of adding ProtoObject-like class to
the compatibility layer that would need to have appropriate primitive
methods added by each platform. And I think it will need to subclass
nil...

Julian

On Fri, Sep 25, 2009 at 9:08 AM, Andreas Raab <andreas.raab at gmx.de> wrote:
> I have no answer to the MC question but out of curiosity, why do you need a
> nil subclass? Wouldn't a ProtoObject subclass do?
>
> Cheers,
>  - Andreas
>
> Igor Stasenko wrote:
>>
>> Tested both in Pharo-Core & Squeak trunk image.
>>
>> The class i defined is:
>>
>> ProtoObject subclass: #BBBNameOfSubclass
>>        instanceVariableNames: ''
>>        classVariableNames: ''
>>        poolDictionaries: ''
>>        category: 'NILSuperClass'.
>> BBBNameOfSubclass superclass: nil
>>
>> In attachment you can fin the fileout of it.
>> And MC package, saved with it.
>>
>> If you try load the package, MC will display warning that you should
>> resolve dependencies 'nil' before loading the class ;)
>>
>> Background:
>> I wanted to migrate to newer image and saved my package, im working
>> on, which i didn't touched for 3-4 months,
>> and found that it can't be loaded :(
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project-bM+ny+RY8h+a+bCvCPl5/gCzwTLBPCX0 at public.gmane.org
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
>



More information about the Squeak-dev mailing list