Module level variable shadowing
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jun 27 01:03:27 PDT 2014
On 2014-06-26 02:41, Walter Bright wrote:
> I suggest that your issues with global variables can be mitigated by
> adopting a distinct naming convention for your globals. Frankly, I think
> a global variable named "x" is execrable style - such short names should
> be reserved for locals.
No need to have a naming convention. As Teoh said, just always prefix
the global variables with a dot.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list