DMD 1.032 and 2.016 releases

Sean Kelly sean at invisibleduck.org
Wed Jul 9 14:43:10 PDT 2008


Walter Bright wrote:
> Sean Kelly wrote:
>> So if I do this:
>>
>>     int[3] x;
>>     fn( x );
>>
>> I should expect to get a compile error?
> 
> If fn returns a static array, yes.

And given my sample implementation of fn:

     T fn(T)( T val ) { return val; }

Then I assume the answer is yes?  If so, then I'm not sure how to 
interpret your "yes, but..." response to my prior post.  Clearly this 
function isn't valid for all types if T can't be a static array type.


Sean


More information about the Digitalmars-d-announce mailing list