D-Scanner icon indicating copy to clipboard operation
D-Scanner copied to clipboard

Warn when using `static` on global variables

Open CyberShadow opened this issue 1 month ago • 0 comments

static int i;

This should raise a notice as static has no effect on global variables in D. This warning can be useful as it may be surprising to developers coming from C or C++, where static does have an effect on global variables.

CyberShadow avatar Nov 22 '25 10:11 CyberShadow