Why 2 ^^ 1 ^^ 2 = 2?

Timon Gehr timon.gehr at gmx.ch
Sun Oct 22 14:44:04 UTC 2017


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.)


More information about the Digitalmars-d-learn mailing list