-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
It should be possible to detect and handle recursion during construction of objects from the parameters structure in an entirely automated way.
In the functionClass-level parameters constructor:
- Detect if we ever return to the same node in the parameter file
- would need a stack (that keeps a pointer to the
inputParameter) for this as could go through this class multiple times in anobjectBuilder
- would need a stack (that keeps a pointer to the
- If detected, return a shim version of the class that just retains a pointer to the original instance and calls the function in the original.
Would need to ensure that the pointer to the object being constructed that is set in the inputParameter node is set prior to anything else in the construction process, so that we can reference this pointer as needed.
Reactions are currently unavailable