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

Add TBase protocol for Cocoa

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9.1
    • Component/s: Cocoa - Compiler
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Add TBase protocol for cocoa generator. By having all generated classes declare conformance of this protocol allows tighter type checking in compile time. One could use "id<TBase>" instead of "id" when passing these objects around. This is also inline with other OO languages' implementation like csharp, python and php.

        Attachments

        1. thrift-1896.patch
          0.7 kB
          Kevin Li
        2. thrift-1896-TBase.patch
          1 kB
          Kevin Li

          Activity

            People

            • Assignee:
              roger Roger Meier
              Reporter:
              kevinlsw Kevin Li
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: