DMD 1.032 and 2.016 releases
Sean Kelly
sean at invisibleduck.org
Wed Jul 9 11:51:51 PDT 2008
Walter Bright wrote:
> Sean Kelly wrote:
>> While it's invalid to return a static array from a function, it does
>> seem like
>> this could have undesired consequences:
>>
>> T fn(T)( T val ) { return val; }
>>
>> Shouldn't the above be valid for all types?
>
> Yes, but returning static arrays is not allowed.
So if I do this:
int[3] x;
fn( x );
I should expect to get a compile error?
More information about the Digitalmars-d-announce
mailing list