I was rereading the Integer Literals section and trying out some code
when I came across a couple of error messages on integer overflows.
I have reproduced the code below for reference.
void main()
{
// The maximum long value is ...807
// The following line produces an error message
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.
On Monday, 04 January, 2016 10:58 PM, Adam D. Ruppe wrote:
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 e
On 1/4/16 10:33 AM, ric maicle wrote:
On Monday, 04 January, 2016 10:58 PM, Adam D. Ruppe wrote:
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 e