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

Enumerated types expressed as int, not "typedef"-ed, in objective-c compilation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: Cocoa - Compiler
    • Labels:
      None

      Description

      When an enumerated type is translated to objective-c, the type is replaced with simply "int". This takes away half the use of an enumerated type as a type. For instance, it is both clearer and a more precise translation to see "PersonID" as a field type in a method than "int". However, the objective-c compiler does not typedef the enum and as a result essentially forgets the type that is declared in the thrift IDL.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jking3 James E. King III
                Reporter:
                peaton Phil Eaton
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: