Order of evaluation - aka hidden undefined behaviours.
Timon Gehr
timon.gehr at gmx.ch
Wed Sep 26 05:49:02 PDT 2012
On 09/26/2012 02:07 PM, monarch_dodra wrote:
> On Tuesday, 25 September 2012 at 22:58:11 UTC, Iain Buclaw wrote:
>> Pop quiz!
>>
>> Without cheating, I invite people to have a good guess what 'abc' is
>> equal to, but just to narrow it down.
>>
>> 1) It isn't "ABC".
>> 2) On x86/x86_64, it isn't "ACB".
>> 3) On everything else, it's the reverse of what you'd expect on
>> x86/x86_64.
>
> I'd say abc's value is "unspecified", and any attempt at predicting it
> would be bogus. That's my answer anyways
>...
Why? This is not useful behaviour.
More information about the Digitalmars-d
mailing list