Faux Amis:

When talking about global variables are we talking about module scope variables?

Right, in D with "global scope" I meant "module scope".


As I see the module as the most primary data encapsulation in D, I often use module scope variables (in combo with static import).

In my opinion that's a bad practice in D.


I didn't know you could shadow globals and in my situation it sounds bug prone.

It's not terrible, I am able to write code. But I think it doesn't help.

Bye,
bearophile

Reply via email to