On Sat, 2007-01-27 at 05:07 +0200, guy keren wrote: > it would be nice if programming languages supported the "delegate" > keyword, to allow stating "methods A, B and C should be delegated to > object O". i've often found the need for such code (where inheritance > was not appropriate for the delegation), and having some 10 methods > which just invoke the next object both requires extra coding, and makes > it less obvious that this is a simple delegation.
Well, some programming languages do support better infrastructure for this pattern - for example, C#. Other systems support this pattern with automated code generation (as I've mentioned before) - like Eclipse for Java. Eh. That's the one thing I'm missing when comparing perl to Java : automated refactoring. -- Oded ::.. Indecision is the true basis for flexibility. _______________________________________________ Perl mailing list [email protected] http://perl.org.il/mailman/listinfo/perl
