Paul Mans created THRIFT-1759:
---------------------------------
Summary: for generated Obj-C constants, move static variable
declarations in implementation file to 'static const' declarations in header
file
Key: THRIFT-1759
URL: https://issues.apache.org/jira/browse/THRIFT-1759
Project: Thrift
Issue Type: Improvement
Components: Cocoa - Compiler
Affects Versions: 0.9, 1.0, 1.1, 1.2
Reporter: Paul Mans
Priority: Minor
By declaring constants as 'static const' in the header file instead in of the
implementation file we can use the constants in more places, such as in case
statements of switch blocks.
Currently in Obj-C constants can only be accessed by using the static methods,
which leads to some limitations.
The 'const' prefix only should apply to "primitive" constants (not structs or
collections)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira