Jonathan M Davis:

Questions like this have come up and been discussed before, but using the same parameter names as member variable names for constructors is such a common practice that there would be quite a bit of screaming if we didn't allow it.

I'm willing to hear them scream. D should statically forbid such kind of code. I have had many (usually quick to find) bugs caused by this.

Bye,
bearophile

Reply via email to