Why 2 ^^ 1 ^^ 2 = 2?

Kagamin spam at here.lot
Thu Oct 26 09:57:43 UTC 2017


On Sunday, 22 October 2017 at 22:28:48 UTC, Ivan Kazmenko wrote:
> Yeah, and a height-3 tower $a^{b^c}$ (TEX notation) actually 
> means "a to the power of (b to the power of c)", not the other 
> way around.

Because you have explicit braces there.

Math doesn't have precedence for exponentiation operator because 
it's written as a superscript, which is always unambiguous.


More information about the Digitalmars-d-learn mailing list