[squeak-dev] Possible buggy senders of Class >> #category?

Marcel Taeumel marcel.taeumel at hpi.de
Tue Dec 17 10:38:30 UTC 2019


Hi Christoph,

extensions to classes that are actually overrides -- so that selector was already taken before in that class -- are managed via Monticello through that "-override" suffix.

See:
MCMethodDefinition >> #isOverrideMethod
MCMethodDefinition >> #unload

MCPackage >> #snapshot

My Widgets project does this in Morph:



When unloading Widgets through Monticello, the orignal methods should be restored.



Best,
Marcel

Am 16.12.2019 23:44:39 schrieb Thiede, Christoph <christoph.thiede at student.hpi.uni-potsdam.de>:
I also heard this the first time now. Many thanks for the tip!

Does this exactly depend on the "override" suffix? So if I overrode dozens of methods, I could not distribute them into special categories?
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von tim Rowledge <tim at rowledge.org>
Gesendet: Montag, 16. Dezember 2019 23:30:11
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] Possible buggy senders of Class >> #category?
 


> On 2019-12-16, at 2:20 PM, Bert Freudenberg <bert at freudenbergs.de> wrote:
>
> That's exactly what's supposed to happen, if you properly named your category "*xyz-override". By marking a method as override, it belongs to both the original package and the overriding package.

Wait, what? I'm fairly sureI've never seen that mentioned before. Do we have that explained anywhere in plausibly obvious swiki page(s)?

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim [http://www.rowledge.org/tim]
If only people came with pull-down menus and online help.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191217/b48152fb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 16508 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191217/b48152fb/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 70642 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191217/b48152fb/attachment-0003.png>


More information about the Squeak-dev mailing list