Skip Menu |

This queue is for tickets about the Math-Expression CPAN distribution.

Report information
The Basics
Id: 37342
Status: resolved
Priority: 0/
Queue: Math-Expression

People
Owner: Nobody in particular
Requestors: joaocosta [...] zonalivre.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: User-Defined Functions with no arguments
The parser seems to fail handling functions with no arguments. In the following example I create an additional function someFunc which takes no arguments and it fails parsing it. Am i doing something wrong or is it a bug in the module ? --------------------------------------------------------------------- #!/usr/bin/perl -w use strict; use Math::Expression; sub moreFunctions { my ($self, $fname, @arglist) = @_; return 1.023 if ($fname eq 'someFunc'); return undef; } my $ArithEnv = new Math::Expression('ExtraFuncEval', \&moreFunctions); my $tree = $ArithEnv->Parse('someFunc() - 21 '); ---------------------------------------------------------------------
On Wed Jul 02 13:46:35 2008, joaocosta wrote: Show quoted text
> The parser seems to fail handling functions with no arguments. > > In the following example I create an additional function someFunc
which Show quoted text
> takes no arguments and it fails parsing it.
I don't think it's supposed to parse it. -- Your bugs , they are afraid of me.
I've only just come across this ticket system ... The bug is now fixed with version 1.47 of Math::Expression