new T[10] => new T[](10)

Stewart Gordon smjg_1998 at yahoo.com
Mon Feb 15 08:06:11 PST 2010


Andrei Alexandrescu wrote:
<snip>
> I see major disruptions of existing code though. Do you guys have ideas 
> of a clean migration path?

Make "new T[10]" a doubly-typed expression.  T[] or T[10]* depending on 
what you try to do with it.

But which should be the default type?

Stewart.



More information about the Digitalmars-d mailing list