It is, as long as you make it local scope - the problem is that in athe whole switch statement is one large scope - so if you declare a variable in the middle, it's the same as if you declared a variable on the other side of a goto as described above - it will not be constructed because you don't run the constructor code, and unconstructed objects aren't a particularly good idea.Code:switch(xx) { ... }
--
Mats