Why 2 ^^ 1 ^^ 2 = 2?

kinbelle 1307838578 at qq.com
Sun Oct 22 16:32:25 UTC 2017


On Sunday, 22 October 2017 at 14:44:04 UTC, Timon Gehr wrote:
> On 22.10.2017 16:20, Ilya Yaroshenko wrote:
>> .. i thought it should be (2 ^^ 1) ^^ 2 = 4
>
> 2 ^^ (1 ^^ 2) == 2
>
> It is standard for ^/**/^^ to be right-associative. (This is 
> also the standard convention in mathematics.)

true


More information about the Digitalmars-d-learn mailing list