Original Post
In C++, where is it legal to declare a variable? Obviously, you can declare a variable in the initialization of a "for" loop, but no where else in an expression. Is the initialization of a "for" loop a special expression that has an exception?
The reason I want to know is because I am making a scripting language that uses syntax similar to C++.