[Vm-dev] Recursive not understood error encountered
John M McIntosh
johnmci at smalltalkconsulting.com
Sun Dec 5 20:07:37 UTC 2010
Mariano, knowing that ProtoObject does understand doesnotunderstand via is not enough. There are a dozen or two other methods needed
in order for a debugger to come up, even to invoke an inspector on ProtoObject subclasses.
You should look at the Objective-C bridge I wrote , the Objective-C proxy object that is based on ProtoObject and contains the
required methods to ensure a debugger will come up. It *does* override does not understand so it can transform the unknown
message into a primitive call.
On 2010-12-05, at 5:57 AM, Mariano Martinez Peck wrote:
>
>
> On Sun, Dec 5, 2010 at 8:53 AM, Colin Putney <colin at wiresong.com> wrote:
>
> On Fri, Dec 3, 2010 at 12:52 PM, Mariano Martinez Peck
> <marianopeck at gmail.com> wrote:
> >
> > Hi. I am still playing with Objects as methods, and I am having yet another kind of crash :(
> > This time, the image crash with the message "Recursive not understood error encountered".
> > I am completly sure that I am not putting ANY proxy for any method of DNU, so I don't understand why I get this error.
>
> Without understanding the details of what you're doing, let me offer
> this:
>
> thanks Colin for the help.
>
> try looking for objects that don't inherit from Object.
>
> Ok, there are objects that doesn't inherit from Object, and even my proxies don't do that. But.....ProtoObject DOES understands the message #doesNotUnderstand:
>
> Even if
> you aren't proxying #doesNotUnderstand:, you can get a recursive DNU
> if an object that doesn't understand #doesNotUnderstand:
>
> there cannot be objects that don't understand #doesNotUnderstand: since it is implemented in ProtoObject.
>
> gets
> *another* message it doesn't understand.
>
>
> Anyway, I will think if there can be a situation that happens what you said...maybe there is.
>
> Thanks a lot !
>
> mariano
>
> Hope this helps.
>
> Colin
>
--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> Twitter: squeaker68882
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
===========================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20101205/47d88105/attachment.htm
More information about the Vm-dev
mailing list