Yes, then you need to move it to the top of the scope, or create a new scope for x until the end of the current scope:
{
... int x = 10; ...
}
->
{ ... { int x=10; ... } }
/ Mirar
Previous text:
2004-05-05 10:42: Subject: precompile.pike
Yes, for those cases that might be possible. I was not aware that such constructions were allowed. But one still needs to move variables defined in the code like:
... int x = 10; ...
should be
int x; ... x=10; ...
since it's not known where x is used after the definition.
/ Marcus Agehall (Scanian)