[Pharo-project] ProtoObject initialize

Mariano Martinez Peck marianopeck at gmail.com
Tue Mar 27 04:29:15 EDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120327/448be07c/attachment-0001.html>


More information about the Pharo-dev mailing list