if(arr) now a warning

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sat May 2 12:34:30 PDT 2015


On 5/2/2015 7:37 AM, Martin Nowak wrote:
> On Friday, 1 May 2015 at 19:45:18 UTC, Walter Bright wrote:
>> I suspect this kind of change and check would be appropriate for a D linter,
>> and not be part of the core language.
>
> Yes it would fit nicely into a static analyzer, but DMD is currently the only
> semantic analyzer we have.


I know. The warnings were supposed to be a static analyzer, but quickly turned 
into core language behavior.


More information about the Digitalmars-d mailing list