2 ms·
It's unidiomatic? > scope where both this->foo and foo are valid and it's unclear which is which Ideally you'd turn on the compiler option to warn about scope
by pjc50 8y ago
It's unidiomatic?
> scope where both this->foo and foo are valid and it's unclear which is which
Ideally you'd turn on the compiler option to warn about scope hiding.
- joshvm 8y agoMaybe, though it's a common thing I've seen in setter functions or constructors: Eg void set_foo(int foo) {this->foo = foo;}