Engineering Requirements Management

Engineering Requirements Management

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Arbitrary Return Value Types

    Posted Fri October 09, 2020 08:45 PM

    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


  • 2.  RE: Arbitrary Return Value Types

    Posted Mon January 25, 2021 07:18 PM

    This product forum is intended for client to client collaboration.

    If you want to engage IBM Support, you should open a support case: https://www.ibm.com/mysupport/s/createrecord/NewCase





    #EngineeringRequirementsManagement
    #DOORS
    #Sustainability
    #SupportMigration
    #Support