new static if bug Re: DMD 1.032 and 2.016 releases

Koroskin Denis 2korden at gmail.com
Thu Jul 10 09:25:04 PDT 2008


On Thu, 10 Jul 2008 15:13:40 +0400, Don <nospam at nospam.com.au> wrote:

> Tom S wrote:
>> Don wrote:
>>> Fortunately, the fix is easy -- I think typeof(x.init) will always  
>>> work.
>>  Except for static arrays: typeof((int[2]).init) == int
>>
> Ouch.

Why so?


More information about the Digitalmars-d-announce mailing list