Brian Schott:

This is not valid. DMD and the grammar spec both do not allow this.


This was changed weeks ago. Now D accepts that code.


    int items[5];
I don't support C-style declarations. DMD doesn't really support them either. (https://issues.dlang.org/show_bug.cgi?id=953)

Then I suggest DScanner to support the half-C-declarations, because D compilers digests them just fine and they are very common in D code you will find in the wild. A code analyzer has to accept the real world code people write, otherwise it's much less useful :-)

Bye,
bearophile

Reply via email to