new static if bug Re: DMD 1.032 and 2.016 releases

bearophile bearophileHUGS at lycos.com
Wed Jul 9 16:15:17 PDT 2008


Walter Bright Wrote:
> It's not a bug. typeof(X), where X is a type, is not valid D and never 
> was. It was a quirk in the compiler (and a bugzilla bug report) that it 
> ever accepted it.

I did assume that typeof(x) == typeof(typeof(x)) for any x (value or type) (but it seems that semantic of mine was wrong).

Bye,
bearophile


More information about the Digitalmars-d-announce mailing list