Skip to content

Better handling of recursion in objectBuilder directives #695

@abensonca

Description

@abensonca

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:

  1. 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 an objectBuilder
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions