Comment on Q: Why can I access an out-of-scope C++ var? A: So you rent a hotel room...parentComments−pyrtsa15yYeah, the hotel room analogy breaks as soon as you realize that visiting some completely other hotel room will already overwrite that variable in the first one.But it was a fun story, though.
Comments
Yeah, the hotel room analogy breaks as soon as you realize that visiting some completely other hotel room will already overwrite that variable in the first one.
But it was a fun story, though.