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

Add TBase protocol for Cocoa

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9
    • 0.9.1
    • Cocoa - Compiler
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: