std.pattern..mixin temptes..std.concurrency

Steven Schveighoffer schveiguy at yahoo.com
Fri Jul 9 05:04:09 PDT 2010


On Thu, 08 Jul 2010 19:38:59 -0400, BLS <windevguy at hotmail.de> wrote:

> 1) std.collections classes , as well as Steven's dcollections are  
> final.. This keeps me away from sub classing and mixin a Publisher  
> template.

Have you tried using composition?

The classes in dcollections are final for performance reasons.  Otherwise,  
the functions will not get inlined when the concrete class is used.  I  
wish there was a way to optionally make the class final (i.e. make it a  
parameter).

-Steve


More information about the Digitalmars-d mailing list