Re: [perl #44211] pi and e behaving strangely when used as a bareword in math

2007-07-28 Thread Patrick R. Michaud
On Sat, Jul 28, 2007 at 01:01:05PM -0700, Colin Kuskie wrote: > On Saturday 28 July 2007, Patrick R. Michaud wrote: > > Actually, in thinking about this, there's likely to be a symbol > > of available barewords somewhere in the parser, and the parser > > will parse these as nouns/terms instead of l

Re: [perl #44211] pi and e behaving strangely when used as a bareword in math

2007-07-28 Thread Colin Kuskie
On Saturday 28 July 2007, Patrick R. Michaud wrote: > On Sat, Jul 28, 2007 at 01:48:13PM -0500, Patrick R. Michaud wrote: > > Also, I'm looking at the STD.pm grammar, and I don't quite see how > > or where it's handling parsing of nullary functions. > > Actually, in thinking about this, there's li

Re: [perl #44211] pi and e behaving strangely when used as a bareword in math

2007-07-28 Thread Patrick R. Michaud
On Sat, Jul 28, 2007 at 01:48:13PM -0500, Patrick R. Michaud wrote: > Also, I'm looking at the STD.pm grammar, and I don't quite see how > or where it's handling parsing of nullary functions. Actually, in thinking about this, there's likely to be a symbol of available barewords somewhere in the pa

Re: [perl #44211] pi and e behaving strangely when used as a bareword in math

2007-07-28 Thread Moritz Lenz
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

Re: [perl #44211] pi and e behaving strangely when used as a bareword in math

2007-07-28 Thread Colin Kuskie
On Saturday 28 July 2007, Patrick R. Michaud wrote: > 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? I originally came across pi in src/builtins/math.pir pi and e are both defined in there. pi is the trig.t

Re: [perl #44211] pi and e behaving strangely when used as a bareword in math

2007-07-28 Thread Patrick R. Michaud
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 in

[perl #44211] pi and e behaving strangely when used as a bareword in math

2007-07-27 Thread via RT
# New Ticket Created by Colin Kuskie # Please include the string: [perl #44211] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=44211 > Please try running either the pi.t or e.t tests from pugs t/builtins/math/{e,pi}.t. Wh