I found this fascinating implementation of a stack type (though it's called List) https://jazz.net/dxl/html/4071%20-%20References,%20function%20declarations%20and%20underscore%20types%20(_%20%20_x%20%20etc.).html
Notably, the pop function takes an reference argument for the variable it's supposed to write to, rather than return a value. The standard function "get(data from array)" has (according to the DXL reference) this signature:
"type get(Array a, int x, int y)"
and can return a value of arbitrary type just fine. How can the pop function be modified to have the same return behavior? I tried wrapping it like "_a pop2(Stack s) { _a result; pop(s, result); return result; }" but that just resulted in the script crashing.
#SupportMigration#EngineeringRequirementsManagement#DOORS#Support#Sustainability