byte + byte = int: why?

Adam D. Ruppe destructionator at gmail.com
Fri Jan 18 17:26:02 UTC 2019


On Friday, 18 January 2019 at 17:09:52 UTC, Mek101 wrote:
> Where temp is a byte array (byte[])

Oh btw, D's byte is signed, range -128 to 127, unlike C# where it 
is unsigned.

C#'s `byte` is represented as D's `ubyte` (meaning "unsigned 
byte"), range 0-255.


More information about the Digitalmars-d-learn mailing list