Jens Geyer created THRIFT-2653:
----------------------------------
Summary: 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
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)