[squeak-dev] Deprecating code

Marcel Taeumel marcel.taeumel at hpi.de
Mon Jan 8 08:15:12 UTC 2018


Hi, Tim.

Yes, new deprecations go into '60Deprecated'.

Only use #deprecated or #deprecated: and move it into '60Deprecated' AFTER you removed all senders in the image to it. That is not yet the case for #setBalloonText: and #setBalloonText:maxLineLength:. That's why they are simple #flag: sends for now.

Best,
Marcel
Am 08.01.2018 01:42:25 schrieb tim Rowledge <tim at rowledge.org>:
As part of my quest to improve the file related dialogs I had to deprecate quite a few methods. Currently I’ve moved all of them (I think!) to a package ‘60Deprecated’, which may or may not be the right one. If it isn’t which is?

It would be nice if someone with a firm grip on the subject could spend a few minutes updating the swiki page - http://wiki.squeak.org/squeak/3940
- to give people like me a better view of what to do.

Further, whilst looking for all the places where I might have deprecated stuff I noticed quite a few methods marked with
self flag: #deprecated instead of self deprecated: ‘explanation of why and what to use instead’. And a some simply marked with self deprecated, with no sort of hint about why. It *looks* like pretty much all of them are marked ‘mt' or ‘topa', so if you folks could spend five minutes to update them a little it would help with deciding what to do for the next release.


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Semolina - a system of signalling with pudding.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180108/0498173b/attachment.html>


More information about the Squeak-dev mailing list