it's called "variable scoping" and a scope is defined by {code}
they are hierarchical and so:
int x = 1;
{
int x = 2;
print x (will print 2)
{
int x = 3;
print x (will print 3)
}
}
print x (will print 1)
Alan
Technical Director - Framestore
Currently working on: Your Highness
IMDB