[Pharo-project] A Lazy Inspector?

Mariano Martinez Peck marianopeck at gmail.com
Mon Oct 18 03:43:26 EDT 2010


On Mon, Oct 18, 2010 at 4:40 AM, Oscar E A Callau <oalvarez at dcc.uchile.cl>wrote:

> Hello all,
>
> I was wondering what actually the inspector does in the following case:
>
> When you explore (or inspect) the expression: Class environment
> you get all classes in the system dictionary. If you navigate inside a
> class, for example AColorSelectorMorph, you can see all its properties and
> one of them is environment, if you go inside it, you get again all classes
> in the system dictionary. So, you can repeat this infinitely (or until you
> get run out of memory, I guess)
>
> Is it the behavior of a lazy inspector? If true, why I cannot inspect a
> mutually-recursive class definition, like this:
>
> Object subclass: #Foo
>        instanceVariableNames: 'bar'
>        classVariableNames: ''
>        poolDictionaries: ''
>        category: ''
>
> Foo>>initialize
>        bar:= Bar new
>
> Object subclass: #Bar
>        instanceVariableNames: 'foo'
>        classVariableNames: ''
>        poolDictionaries: ''
>        category: ''
>
> Foo>>initialize
>        bar:= Foo new
>
> Thanks in advance.
>
>
That's a good question. I have no idea how it is hanlder.


> P.S.: How can I stop my execution in the pharo image when it is in a
> infinite loop? I can't remember what the shortcut was.
>
>
http://book.pharo-project.org/book/TipsAndTricks/InterruptKey/



>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20101018/55ffed0c/attachment-0001.html>


More information about the Pharo-dev mailing list