Release process and backwards compatibility

Daniel Murphy yebblies at nospamgmail.com
Fri Mar 8 19:01:15 PST 2013


"bearophile" <bearophileHUGS at lycos.com> wrote in message 
news:hohjkspdzavtiqxqimms at forum.dlang.org...
>
> string[4] colors = ["red",
>                     "blue"
>                     "green",
>                     "yellow"];
> void main() {}
>

I hate this, a lot.

> I have a bit of statistical proof that code like this is a common source 
> of bugs, and I'd like this to be statically disallowed 
> (http://d.puremagic.com/issues/show_bug.cgi?id=5409 ):
>
> (!x & y)
>

This would be a good dmd patch for you to tackle bearophile.

Should be as simple as adding a check to the semantic routine of AndExp, 
looking at what type of expression e1 is.




More information about the Digitalmars-d mailing list