static import (v2.071.0)

Vladimir Panteleev via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 11 07:18:16 PDT 2016


On Wednesday, 11 May 2016 at 14:11:46 UTC, Chris wrote:
> I'm updating my code to 2.071.0 at the moment. Naturally, I get 
> a lot of warnings like
>
> `module std.uni is not accessible here, perhaps add 'static 
> import std.uni;'`
>
>
> Will `static import` bloat my exe or simply access the members 
> I use?

It should have no effect on generated code. The warning is to 
inform you that your code relied on buggy behavior which will be 
removed in future versions, but still currently compiles as 
before. Adding the static import will simply fix the reliance on 
the buggy behavior.


More information about the Digitalmars-d-learn mailing list