www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Arguments and attributes with the same name

As soon as you have an instance variable x and a function parameter x, there
will *always* be ambiguity (unless you don't use the parameter). Requiring the
use of "this." amounts to disallowing access to the parameter x.<

Thank you for spotting my stupid idea :o) I will update the enhancement request with this note of yours. Bye, bearophile
Mar 04 2010