> Strings from same module are shown.
It’s a know issue in PO2013. When a module M exporting
a string s is imported by another module N, an object
for the imported string M.s is created in the symbol
table of N, with the string position (strx) of s
within module M (!) is stored in the field obj.val
of the generated object.
However, when during compilation of the importing
module N string M.s is referenced, a string item
will by created via ORB.MakeStringItem which copies
the string buffer from ORS.str (i.e. the strings of
the importing module N = the module currently being
compiled), but using the string position of the
*imported* module.
That’s the bug. And the reason why you are
seeing the strings from the importing module.
The fix would be to make string constants aware
of modules. Both require rewriting the compiler.