if(arr) now a warning
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Sat May 2 21:41:23 PDT 2015
On Sat, 02 May 2015 19:56:49 +0000, weaselcat wrote:
> On Saturday, 2 May 2015 at 14:37:08 UTC, 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.
>
> dscanner exists
dscanner doesn't do full semantic analysis. and you need that, with full
type inference, to catch all cases.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150503/70b193cb/attachment.sig>
More information about the Digitalmars-d
mailing list