Arguments and attributes with the same name

Bane branimir.milosavljevic at gmail.com
Thu Mar 4 05:44:37 PST 2010


> This can be solved if the compiler warns when an assignment is from a 
> variable to the same one.
> 
> x = x; // error: assignment has no effect

Nice and useful.



More information about the Digitalmars-d mailing list