Is it allowed to just place some curly braces without any if/for/etc statements to limit the variable scope?
An example:
public void myMethod()
{
...
{
int x;
x = 5;
}
...
}
I may want to do this, so I know for sure I won't access/change the variable outside the scope and that it will be destroyed beforehand