You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Phil Eaton (JIRA)" <ji...@apache.org> on 2014/05/30 18:51:03 UTC
[jira] [Updated] (THRIFT-2561) Enumerated types expressed as int,
not "typedef"-ed, in objective-c compilation
[ https://issues.apache.org/jira/browse/THRIFT-2561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phil Eaton updated THRIFT-2561:
-------------------------------
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. (was: 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. It is more useful to see "PersonID" for instance 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.)
> Enumerated types expressed as int, not "typedef"-ed, in objective-c compilation
> -------------------------------------------------------------------------------
>
> Key: THRIFT-2561
> URL: https://issues.apache.org/jira/browse/THRIFT-2561
> Project: Thrift
> Issue Type: Improvement
> Components: Cocoa - Compiler
> Reporter: Phil Eaton
> Priority: Minor
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)