(pow:), the exponentiation macro, isn't working for me.
According to the Harlowe 1.2.2 documentation, (pow:) is supposed to take exactly two values, the base and the exponent. But when I write (pow: $w, 2.5) it doesn't evaluate. I'm told "1 too many values were given to this (pow:) macro. The (pow:) macro must only be given a number."
When I acquiesce to this nonsensical error and write (pow: $w) or (pow: 2.5), it evaluates to NaN. Of course, this is backwards. (pow:) shouldn't evaluate on one argument. You need a base and an exponent.
What is this beginner missing?
Comments
While waiting for them to be fixed you can use the Javascript Math.pow function instead, it is what the macro itself uses.
I've also just discovered that the (random:) macro, which the doc says can take either one or two args, only takes two. But this bug is not an issue because (random: 0, $x) is equivalent to the documented form (random: $x).