Re: scope of variables

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

He!He! euphoria is nicer than other languages, I can access shadowed top level variables if I give a namespace to my file. Try this.

namespace test 
 
integer i=1 
procedure test1() 
   integer i=2 
   ? test:i 
   ? i  
end procedure 
test1() 
 

You see Jeremy there is no problem reusing same name as at top level in a function smile
It is better leave it as it is now.

Jacques

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

Search



Quick Links

User menu

Not signed in.

Misc Menu