[vwnc] Uninspectable objects

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Uninspectable objects

Stefan Schmiedl
Evaluating

        (OrderedCollection basicNew: 10) inspect

raises an exception, since the collection's size is calculated by
directly accessing the instance variables lastIndex and firstIndex,
which at that point are still nil.

Terminating the exception leaves an empty inspector window.

I guess that the direct access was used for maximum speed of an
important operation, so using "smarter" methods would slow things
down quite a bit. Maybe Trippy could be made a bit smarter and
wrap its inspecting message sends in an error handler?

Thanks,
s.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc