Module level variable shadowing
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jun 28 02:30:07 PDT 2014
On 2014-06-28 08:19, dennis luehring wrote:
> thx for the examples - never though of these problems
>
> i personaly would just forbid any shadowing and single-self-assign
> and then having unique names (i use m_ for members and p_ for parameters
> etc.) or give a compile error asking for this.x or .x (maybe problematic
> with inner structs/functions)
I think, in general, if you need to prefix/suffix any symbols name,
there's something wrong with the language.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list