[fpc-devel] some little errors/notes

Micha Nelissen micha at neli.hopto.org
Thu May 26 21:22:53 CEST 2005


On Thu, 26 May 2005 11:18:52 +0200
"Gerhard Scholz" <gs at g--s.de> wrote:

> This follows the "natural" precedence of mathematical formulas. But with the
> power operator the "natural" precedence is from right to left:
>         a ** b ** c ** d
>     normally means:
>         a ** ( b ** ( c ** d ) )
> The FP compiler evaluates a ** b ** c ** d as:
>         ( ( a ** b ) ** c ) ** d

Define "natural" please ? If I write 2**3**5, I probably mean 2^3^5 = (2^3)^5, not 2^(3^5). In this case, FP is "right".

Micha




More information about the fpc-devel mailing list