News for hackers. Stuff that matters.
Re:Q: Why can I access an out-of-scope C++ var? A: So you re... by varjag on Thursday June 23, 2011 @02:19AM (#2686885)
> C/C++ lets you do what you want, presumably because you know what you're doing.

Frankly, C++ is kinda schizophrenic about it. First, it is really anal about class membership, to the extent they had to introduce friend qualifier to get around its impracticality. And then you get this.

There are no comments on this comment yet.