[Pharo-project] ProtoObject initialize
hanged my image :3. Is that something I was not supposed to do? Guille
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@gmail.com
wrote:
hanged my image :3.
Is that something I was not supposed to do?
Guille
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 <guillermopolito@gmail.com
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@gmail.com> 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: hernan.wilkinson@10Pines.com site: http://www.10Pines.com <http://www.10pines.com/>* Address: Paraguay 523, Floor 7 N, Buenos Aires, Argentina
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 <hernan.wilkinson@10pines.com>
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 < guillermopolito@gmail.com> 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@gmail.com> 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: hernan.wilkinson@10Pines.com site: http://www.10Pines.com <http://www.10pines.com/>* Address: Paraguay 523, Floor 7 N, Buenos Aires, Argentina
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 <guillermopolito@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
On Fri, Mar 23, 2012 at 11:03 AM, Noury Bouraqadi <bouraqadi@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@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
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@gmail.com> wrote:
On Fri, Mar 23, 2012 at 11:03 AM, Noury Bouraqadi <bouraqadi@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@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
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@gmail.com> wrote:
On Fri, Mar 23, 2012 at 11:03 AM, Noury Bouraqadi <bouraqadi@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@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
participants (5)
-
Guillermo Polito -
Hernan Wilkinson -
Hernán Morales Durand -
Mariano Martinez Peck -
Noury Bouraqadi