If T[new] is the container for T[], then what is the container for T[U]?

Danny Wilson bluezenix at gmail.com
Sat Apr 25 15:14:42 PDT 2009


Op Sat, 25 Apr 2009 15:07:52 +0200 schreef Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org>:

> It looks we can't make it with only T[]. We need a genuine container  
> type, and T[new] was suggested. It would probably have value semantics.
>
> T[U] seems to have the same problem. If T[U] is the range, then how do  
> you call the container?

T[new U] ?
T[new(U)] ?
T[U new] ? you knew...?


still, reusing new like that looks pretty akward to me.



More information about the Digitalmars-d mailing list