study: use checkedint as a drop-in replacement of native long
mw
mingwu at gmail.com
Wed Mar 24 18:41:50 UTC 2021
On Wednesday, 24 March 2021 at 18:38:07 UTC, Gregor Mückl wrote:
> On Wednesday, 24 March 2021 at 17:38:14 UTC, H. S. Teoh wrote:
>> Since there is only one sensible meaning of `a = b = c`...
>
> If I'm reading the spec on expressions right, the compiler is
> actually free to interpret that as (a = b) = c if it feels
> particularly adventurous. The evaluation order of assignment
> operations is explicitly undefined...
Where is the spec you referring to?
Let's fix the spec first then.
More information about the Digitalmars-d
mailing list