[squeak-dev] [BUG] Browsing uniclasses
Marcel Taeumel
marcel.taeumel at hpi.de
Mon Feb 24 14:01:18 UTC 2020
Well, but it makes no sense to browse a uniclass, does it? Except, maybe, if you manage to add new code to those uniclasses via Squeak's reflection interface. And then want to get a code browser for that.
Otherwise, use the uniclass's base class to browse.
Uniclasses are basically for Etoys only and have limited tool support in Squeak's standard code browsing tools. It's a little bit like object-as-method. :-)
Best,
Marcel
Am 24.02.2020 14:50:36 schrieb Thiede, Christoph <christoph.thiede at student.hpi.uni-potsdam.de>:
Hi Marcel,
but it should not be a big task to support them, should it? After fixing #hasClassSelected, I could compile and categorize methods as usual ...
Best,
Christoph
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel
Gesendet: Montag, 24. Februar 2020 14:42:26
An: John Pfersich via Squeak-dev
Betreff: Re: [squeak-dev] [BUG] Browsing uniclasses
Hi Christoph,
uniclasses do not show up in the System Browser; they are not supported there. Yes, there can be strange behavior if you still try to. :-)
Best,
Marcel
Am 24.02.2020 14:37:44 schrieb Thiede, Christoph <christoph.thiede at student.hpi.uni-potsdam.de>:
Hi all,
there is another small bug IWLT fix for the release:
The message [category] list is empty.
At first glance, Browser >> #hasClassSelected is erroneous because it hardcodes Smalltalk instead of the displayed environment:
hasClassSelected
^ selectedClassName notNil and: [(Smalltalk classNamed: selectedClassName) notNil]
Is my assumption correct that there should be almost zero references to Smalltalk in Browser & Co.?
Now I have to ask the question of whether you should use self environment or self selectedEnvironment here. What's the difference?
Best,
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200224/86277026/attachment-0001.html>
More information about the Squeak-dev
mailing list
|