Is there anything fundamentally wrong with this code?

Era Scarecrow via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Feb 4 18:19:35 PST 2017


On Friday, 3 February 2017 at 18:37:15 UTC, Johan Engelen wrote:
> The error is in this line. Instead of assigning to the 
> `postProc` at module scope, you are defining a new local 
> variable and assigning to it.

  Wasn't the compiler suppose to warn you when you are shadowing 
another variable? Or is that only with two local ones?


More information about the Digitalmars-d-learn mailing list