You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2014/08/07 22:49:13 UTC

[jira] [Updated] (THRIFT-2653) improved Delphi const generation

     [ https://issues.apache.org/jira/browse/THRIFT-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jens Geyer updated THRIFT-2653:
-------------------------------

    Attachment: THRIFT-2653_improved_Delphi_const_generation.patch

> 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
>         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)