Feature. The native classes are not resolved by locating them in .environment, but rather located as part of the the package resolution process, which searches the REXX package if the class is not located locally.
Rick On Sun, Apr 3, 2022 at 8:58 AM Rony G. Flatscher <rony.flatsc...@wu.ac.at> wrote: > 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 > Oorexx-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/oorexx-devel >
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel