scope of variables

new topic     » topic index » view thread      » older message » newer message
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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu