scope of variables
- Posted by coconut Dec 29, 2010
- 2969 views
enum a,b while 1 do integer b -- the scope of this variable should be limited to the while b=1 ?b exit end while
trying to run that code report an arror saying that b is already defined. It's not what I would have expected. In other languages that permit variable declaration inside code block the scope is limited to the block.
I opened a ticket for this. It is a bug.
Jacques