RE: namespace coflicts: local vs private symbols
Hello Al,
> If you check out your code carefully, i dont think you will
> find this to be a namespace error?
I know its not a namespace error. Eu only looks for variables until it
finds one. Then if that variable dont have a value then it returns an
error rather than continuing to look for another variable of the same
name (but of different scope). The issue is NOT that the given code
SHOULD work, it is that there is no way to access the local variable
within the scope of the private variable... not even as the first
assignment of the private one. The private variable completely blocks
the local variable. I just think that there should be SOME way to access
that local var. Not that the code I gave should pass without error.
Perhaps the following example would be a suitable alternative:
sequence x
x = {0,0,0,0}
procedure p ()
sequence x
x = local:x + 1
? x
end procedure
? x
p ()
? x
later
Lewis Townsend
|
Not Categorized, Please Help
|
|