[ 
https://issues.apache.org/jira/browse/THRIFT-1366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126102#comment-13126102
 ] 

Jens Geyer commented on THRIFT-1366:
------------------------------------

Mmmh. I'm not sure. 

http://wiki.apache.org/thrift/ThriftTypes states that all integers are *signed* 
types. Byte is not signed, but ShortInt is. 

I have checked some of the other generators: 
* All signed integers: C++, Java, XSD, AS3, C-GLib, Haskell(?) 
* C# unsigned "byte", but all others as signed integers
* Cocoa unsigned "byte", but all others as signed integers

So (if we leave Delphi out) we have a count of 6:2 for signed 8-bit integers 
(but remember: i haven't checked them all). Jake, what's the official opinion 
here? Is a Thrift "byte" signed or unsigned?


                
> Delphi generator, lirbrary and unit test.
> -----------------------------------------
>
>                 Key: THRIFT-1366
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1366
>             Project: Thrift
>          Issue Type: New Feature
>            Reporter: Kenjiro Fukumitsu
>            Assignee: Jake Farrell
>         Attachments: THRIFT-1366_delphi_generator_lib_test_v2.zip, 
> THRIFT-1366_delphi_generator_lib_test_v3.zip, 
> THRIFT-1366_delphi_generator_lib_test_v4.zip, 
> THRIFT-1366_delphi_generator_lib_test_v5.zip, 
> THRIFT-1366_delphi_generator_lib_test_v6.zip, 
> THRIFT-1366_delphi_generator_lib_test_v7.zip, 
> THRIFT-1366_delphi_generator_lib_test_v8.zip
>
>
> I wrote Delphi generator, lirbrary and unit test.
> It works with Delphi XE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to