[Pharo-project] ProtoObject initialize

Noury Bouraqadi bouraqadi at gmail.com
Wed Mar 28 03:58:40 EDT 2012


exactly. The semantics of initialize for classes is different from the one for plain instances.

On 27 mars 2012, at 22:18, Guillermo Polito wrote:

> Now, re-initializing classes is kind of weird :P.  I should only initialize classes with it's own #initialize and their subclasses -only if they have class instance methods :/.
> 
> ufa
> 
> On Tue, Mar 27, 2012 at 5:29 AM, Mariano Martinez Peck <marianopeck at gmail.com> wrote:
> 
> 
> On Fri, Mar 23, 2012 at 11:03 AM, Noury Bouraqadi <bouraqadi at gmail.com> wrote:
> Hi Guillermo,
> 
> The expression "ProtoObject initialize" does actually work.
> ProtoObject metaclass inherits the initialize method from Behavior.
> But, running it resets the ProtoObject critical IVs (superclass, methodDict and format).
> Hence the hang.
> 
> Exactly. Otherwise, the VM would have crashed (not hanged) with an error saying "recursive does not understand". Check the VM code for more details.
> 
>  
> 
> Noury
> 
> On 22 mars 2012, at 22:44, Guillermo Polito wrote:
> 
> > Answering myself, thanks to Esteban:
> >
> > It hangs because It does not understand #initialize, so It throws a DNU, and it also does not understand #doesNotUnderstand:
> >
> > On Thu, Mar 22, 2012 at 6:12 PM, Guillermo Polito <guillermopolito at gmail.com> wrote:
> > hanged my image :3.
> >
> > Is that something I was not supposed to do?
> >
> > Guille
> >
> 
> Noury
> --
> http://twitter.com/#!/NouryBouraqadi
> http://www.kroobe.com/profile/noury
> 
> 
> Afin de contribuer au respect de l'environnement,
> merci de n'imprimer ce courriel qu'en cas de necessite
> 
> Please consider the environment before you print
> 
> 
> 
> 
> 
> 
> 
> -- 
> Mariano
> http://marianopeck.wordpress.com
> 
> 

Noury
--
http://twitter.com/#!/NouryBouraqadi
http://www.kroobe.com/profile/noury


Afin de contribuer au respect de l'environnement,
merci de n'imprimer ce courriel qu'en cas de necessite

Please consider the environment before you print







More information about the Pharo-dev mailing list