On Aug 23, 2013, at 3:48 AM, Norbert Hartl <norb...@hartl.name> wrote:

>> would strategy not solve your problem?
>> 
> Sure if I would have an actual problem I would use strategy to mitigate the 
> problem. With strategy you can extend the single dimensionality of single 
> inheritance but you cannot acquire new behavior. Or better it is even more 
> cumbersome if you use it to make it acquire new things. 
> Or different said: If there is something like a design pattern that is used 
> really often it could be a good idea if the language would support this out 
> of the box, right? Somewhere in between is the reason why I was asking :)

Metaprogramming is your friend :-P

Actually this is only half jokingly … one of the ideas of metaprogramming is 
that the programmer can mold the semantics of the language to his/her liking 
depending on the task at hand. This (amongst others) is why we can do so many 
cool things in Smalltalk. For example, when you have a more concrete case of 
what you are looking for you can build something with method wrappers, or 
override DNU :-) to do your thing ...

---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile


Reply via email to