MAAdaptiveModel

Lukas Renggli renggli at iam.unibe.ch
Thu Apr 19 22:34:24 MEST 2007


> I am creating a model class that only has a few core attributes and
> will allow the user to create descriptions through a description
> editor.  Is subclassing MAAdaptiveModel a smart alternative to using
> customDescription on the class side (as seen in Exercise 18 in
> magritte-solutions.pdf)?

Yes, I think that's a good solution.

Sometimes this is not possible, so a stateful trait -- to turn any  
class into an adaptive model --  would be a really a cool thing to  
have. I basically end up re-implementing the few methods necessary  
over and over again.

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch




More information about the smallwiki mailing list