Integer literals

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 4 06:58:20 PST 2016


On Monday, 4 January 2016 at 14:54:29 UTC, ric maicle wrote:
>   0U .. 4_294_967_296U
>
> in the table Decimal Literal Types has a typo. Shouldn't the 
> range
> end with 4_294_967_295U?

The x .. y syntax excludes y. So 0..3 covers 0, 1, 2. It excludes 
3.


More information about the Digitalmars-d-learn mailing list