Sometimes it would be extremely helpful, if the concept of ThreadLocal variables was available for Rexx threads (e.g. like Java). This would allow to store and fetch variable values which have the same name but distinct values in each Rexx thread.
Maybe one idea that could fit ooRexx concept here, would be to define an environment symbol named
.threadLocal
which denotes a directory object that then could be used from within a Rexx thread to store or retrieve thread local values.
[This way we would have .environment for values available to all Rexx instances, .local for values available to a single Rexx instance, and .threadLocal for values available to a single Rexx thread.]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Maybe one idea that could fit ooRexx concept here, would be to define an environment symbol named
.threadLocal
which denotes a directory object that then could be used from within a Rexx thread to store or retrieve thread local values.
[This way we would have .environment for values available to all Rexx instances, .local for values available to a single Rexx instance, and .threadLocal for values available to a single Rexx thread.]