[squeak-dev] NanoTraits are go

Igor Stasenko siguctua at gmail.com
Wed Dec 30 08:31:32 UTC 2009

ClassDescription , Metaclass ivars:
  traitComposition localSelectors
has no uses.

Andreas using a TraitMethodProperties to hold a reference to original
method, and then to trait. So, its easy to tell whether method is
local or not, by asking it, without need of keeping a separate state.
I find such approach less error prone, since method is the unit of
manipulation for traits and asking it directly, where it came from is
more appropriate. And sure thing, copying method over multiple method
dicts, does not require you to care about keeping something else in
sync (except categorizer, maybe).

Best regards,
Igor Stasenko AKA sig.

More information about the Squeak-dev mailing list