Jens Geyer created THRIFT-1876:
----------------------------------

             Summary: Use enum names instead of casted integers in assignments
                 Key: THRIFT-1876
                 URL: https://issues.apache.org/jira/browse/THRIFT-1876
             Project: Thrift
          Issue Type: Improvement
          Components: Delphi - Compiler
            Reporter: Jens Geyer
            Assignee: Jens Geyer
             Fix For: 1.0


Same as in THIFT-1318 with C#. 
It makes more sense to write

{code}
this.property = TMyEnumType.SomeValue;
{code}

instead of the C-ish casting style like in 

{code}
this.property = TMyEnumType(-42);
{code}

And since it seems not to be possible to assign values other than the 
IDL-defined enum values, there is no reason left to use the cast.

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

Reply via email to