DMD 1.032 and 2.016 releases

Walter Bright newshound1 at digitalmars.com
Wed Jul 9 11:06:43 PDT 2008


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.


More information about the Digitalmars-d-announce mailing list