Arguments and attributes with the same name

bearophile bearophileHUGS at lycos.com
Thu Mar 4 14:05:23 PST 2010


Clemens:
>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



More information about the Digitalmars-d mailing list