For proxies/wrappers, you might want to look into how the Ghost framework
interrupts sends.
(I don't know the exact details, but I'd guess step 1 is subclassing
ProtoObject, rather than Object)

For your specific case, isn't there already a *Struct class in the image you
can subclass, create a class method containing the fields definition, and
then have accessors autogenerated, rather than using doesNotUnderstand:?
Usually, that would make the code easier to browse/debug later on, doesn't
confuse the syntax highlighter/code critic in uses of an otherwise undefined
field, etc.

Cheers,
Henry



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html

Reply via email to