Development Log

  • Ada | Ada 2005 / 95 / 83
    Jan 1st, 2012

    AI-0002 Export C with unconstrained arrays
    The compiler is not required to support exporting an Ada subprogram with convention C if there are parameters or a return type of an unconstrained array type (such as String). GNAT allows such declarations but generates warnings. It is possible, but involved, to write the corresponding C code and certainly such code would be specific to GNAT and non-portable.