Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2580

better COM-ability for generated Delphi interfaces

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Later
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Delphi - Compiler
    • Labels:
      None

      Description

      Consists of two major points:

      • reintegrate UUID generation code to add IIDs to generated interfaces.
      • optionally generate WideString instead of String

      Currently, generated interfaces do not have an IID assigned. Although not absolutely necessary, having a IID assigned is considered good practice and makes certain things possible which are not possible without an IID assigned, like cross-module usage.

      Same is true for WideString (Delphi-equivalent of BSTR), which can be directly used cross-module, while standard Delphi String cannot. However, String is far more efficient compared to WideString, thus String shall remain the default, and the WideString usage is only to be enabled via Thrift compiler switch.

      Needs to check, if the boost version available at compiler build time supports this.

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              jensg Jens Geyer

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment