Re: scope of variables
- Posted by jeremy (admin) Dec 30, 2010
- 2756 views
coconut said...
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
It is better leave it as it is now.
Yes. Namespaces are nice, but that doesn't make it right. It also does not solve the discussed problem of:
integer abc = 10 if abc > 5 then sequence abc = "John" if equal(abc, "John") then atom abc = 12.3 return abc * 5.8 end if end if
Which is what is being proposed.
Jeremy