Quantcast

ProtoObject initialize

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ProtoObject initialize

Guillermo Polito
hanged my image :3.

Is that something I was not supposed to do?

Guille
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ProtoObject initialize

Guillermo Polito
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 <[hidden email]> wrote:
hanged my image :3.

Is that something I was not supposed to do?

Guille

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ProtoObject initialize

Hernan Wilkinson-3
I don't understand why it does not understand #doesNotUnderstand:... shouldn't ProtoObject understand #doesNotUnderstand:??? (it is not a joke, I'm serious) 

On Thu, Mar 22, 2012 at 6:44 PM, Guillermo Polito <[hidden email]> 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 <[hidden email]> wrote:
hanged my image :3.

Is that something I was not supposed to do?

Guille




--
Hernán Wilkinson
Agile Software Development, Teaching & Coaching
Phone: +54 - 011 - 4311 - 8404
Mobile: +54 - 911 - 4470 - 7207
email: [hidden email]
site: http://www.10Pines.com
Address: Paraguay 523, Floor 7 N, Buenos Aires, Argentina

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ProtoObject initialize

hernanmd
I think others could explain the technical reasons, which sincerely I don't care at all. Conceptually I guess the designer :) wanted to have a closure with some kind of dummy object to represent the "Je pense donc je suis" (ego cogito, ergo sum), similarly, ProtoObject knows that it doesn't understand, then it doesn't understand... but that's only a cartesian-platonic route to knowledge representation, if you want to expand the system at this level, you may start modeling interesting knowledge acquisition and cognitive processes, only to finally be accused of not making money for your boss :)
Cheers,

Hernán

2012/3/22 Hernan Wilkinson <[hidden email]>
I don't understand why it does not understand #doesNotUnderstand:... shouldn't ProtoObject understand #doesNotUnderstand:??? (it is not a joke, I'm serious) 


On Thu, Mar 22, 2012 at 6:44 PM, Guillermo Polito <[hidden email]> 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 <[hidden email]> wrote:
hanged my image :3.

Is that something I was not supposed to do?

Guille




--
Hernán Wilkinson
Agile Software Development, Teaching & Coaching
Phone: +54 - 011 - 4311 - 8404
Mobile: +54 - 911 - 4470 - 7207
email: [hidden email]
site: http://www.10Pines.com
Address: Paraguay 523, Floor 7 N, Buenos Aires, Argentina


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ProtoObject initialize

Noury Bouraqadi-2
In reply to this post by Guillermo Polito
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.

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 <[hidden email]> 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




Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ProtoObject initialize

Mariano Martinez Peck


On Fri, Mar 23, 2012 at 11:03 AM, Noury Bouraqadi <[hidden email]> 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 <[hidden email]> 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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ProtoObject initialize

Guillermo Polito
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 <[hidden email]> wrote:


On Fri, Mar 23, 2012 at 11:03 AM, Noury Bouraqadi <[hidden email]> 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 <[hidden email]> 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


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ProtoObject initialize

Noury Bouraqadi-2
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 <[hidden email]> wrote:
>
>
> On Fri, Mar 23, 2012 at 11:03 AM, Noury Bouraqadi <[hidden email]> 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 <[hidden email]> 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




Loading...