T[new] misgivings

Robert Jacques sandford at jhu.edu
Thu Oct 15 20:20:56 PDT 2009


On Thu, 15 Oct 2009 23:16:56 -0400, Walter Bright  
<newshound1 at digitalmars.com> wrote:

> Andrei Alexandrescu wrote:
>> This goes into something more interesting that I thought of after the  
>> conversation. Consider:
>>  T[new] a;
>> T[] b;
>> ...
>> a = b;
>>  What should that do?
>
> Error. T[] cannot be implicitly converted to T[new]

I agree.



More information about the Digitalmars-d mailing list