According to rexxref.pdf, 1.13.6. Environment Symbols, the package local
directory is used before
.local and .environment in resolving environment symbols.
This seems not to be the case if an environment symbol would resolve a class in
.environment, here
an example:
pkglocal=.context~package~local
pkglocal~bag="one, two, three" -- "Bag" entry in .environment
pkglocal~endOfLine="end-of-line"
say "pkglocal~bag :" pp(pkglocal~bag)
say ".bag :" pp(.bag) "(does not resolve package~local
directory)"
say ".environment~bag:" pp(.environment~bag)
say "rexx:bag :" pp(rexx:bag)
::routine pp
return "["arg(1)"]"
yielding:
pkglocal~bag : [one, two, three]
.bag : [The Bag class] (does not resolve package~local directory)
.environment~bag: [The Bag class]
rexx:bag : [The Bag class]
According to 1.13.6 package local gets consulted in step 4, .environment in
step 6, hence expecting
".bag" returning "one, two , three" if used in this package.
Is this a bug or a feature?
---rony
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel