Patrick R. Michaud wrote: > On Fri, Jul 27, 2007 at 09:13:42PM -0700, Colin Kuskie wrote: >> Please try running either the pi.t or e.t tests from >> pugs t/builtins/math/{e,pi}.t. >> >> When used in an equation like this: >> pi + 3 >> parrot returns this error: >> >> too few arguments passed (1) - 2 params expected >> current instr.: 'parrot;Perl6::Compiler;main' pc 138 (perl6.pir:98) >> >> pi and e don't take any arguments, so maybe it is '+' complaining? > > Out of curiosity, where are 'pi' and 'e' defined (e.g., in > the Synopses or other specs)? Do these even belong in the > test suite?
S29, section "Num": Num provides a number of constants in addition to the basic mathematical functions. To get these constants, you must request them: use Num :constants; or use the full name, e.g. Num::pi. HTH, Moritz -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature