On 14.07.2024 11:31, Rick McGuire wrote:
On Sun, Jul 14, 2024 at 5:28 AM Rony G. Flatscher <rony.flatsc...@wu.ac.at> 
wrote:

    On 13.07.2024 17:31, Rick McGuire wrote:
    That makes absolutely no sense. Once the new activity is started, there is 
no guarantee that
    the stackframe or even the activity from which it was spawned even exists 
any more. The
    original activity has continued on doing its own stuff.

    A question here: I thought that if storing Rexx objects in a Rexx 
collection they are pinned
    and do not get garbage collected.

The stack frame object would not be garbage collected, but the stack frame itself and the things that it referred to would no longer exist or be valid.

Thank you!

A last question in this context: as a StackFrame object allows access to strings and the executable (a routine or a method) and target (in case of a method) object, would it be safe to just create a StringTable and copy all accessible values of the StackFrame to the StringTable using the same names as index?

I.e. the stack frame values for: arguments (an array), executable (a routine or a method), line (a string), name (a string), target (an object), traceLine (a string), type (a string).  The idea being that the executable and the target object would get pinned by the StringTable (and there would be no stack frame related context left that could be erroneously referred to later by a Rexx programmer).

---rony

_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to