[
https://issues.apache.org/jira/browse/THRIFT-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer resolved THRIFT-2653.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.9.2
Tested & committed.
> improved Delphi const generation
> --------------------------------
>
> Key: THRIFT-2653
> URL: https://issues.apache.org/jira/browse/THRIFT-2653
> Project: Thrift
> Issue Type: Improvement
> Components: Delphi - Compiler
> Reporter: Jens Geyer
> Assignee: Jens Geyer
> Fix For: 0.9.2
>
> Attachments: THRIFT-2653_improved_Delphi_const_generation.patch
>
>
> Currently, all constants are rendered as
> {code}
> TConstants = class
> private
> class var FmyInt: TmyIntType;
> class var Fhex_const: Integer;
> class var FGEN_ME: Integer;
> class var FGEn_DU: Double;
> // ...
> public
> class property myInt: TmyIntType read FmyInt;
> class property hex_const: Integer read Fhex_const;
> class property GEN_ME: Integer read FGEN_ME;
> class property GEn_DU: Double read FGEn_DU;
> // ...
> {code}
> and the F-members initialized in the CTOR. At least for base types this could
> be improved to
> {code}
> TConstants = class
> public
> const myInt = LongInt( 3);
> const hex_const = LongInt( 31);
> const GEN_ME = LongInt( -3523553);
> const GEn_DUB = 325.532;
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)