Hammer, a question for you - var scope
In another thread, I saw a response from you, about Salem's instructional code to someone else.
Essentially, a variable was declare within a for() loop that had additional braces. You said:
> That way the variable is only visible within the loop,
> and not within the rest of the function. This is the
> same for most variables created within braces
Are you sure about this? Can you point me at a reference? Is this a C++ abstraction?
I would be very surprised if that variable isn't accessible anywhere in the rest of the function, because it had to be allocated on the stack when the function was jumped to.