Array append performance 2

downs default_357-line at yahoo.de
Mon Sep 1 02:00:21 PDT 2008


bearophile wrote:
> Christian Kamm:
>> Actually, I don't think the D spec requires typeof(T.init) == T.
> 
> Maybe the D specs have to be fixed then.
> 

This should do what you want:

template Init(T) { const T Init; }



More information about the Digitalmars-d mailing list