develooper Front page | perl.perl5.porters | Postings from April 2007

Re: Proposed changes and to regular expression interfaces in core

Thread Previous | Thread Next
From:
Ævar Arnfjörð Bjarmason
Date:
April 10, 2007 11:53
Subject:
Re: Proposed changes and to regular expression interfaces in core
Message ID:
51dd1af80704101153h1f47cffdx74c6b23029f8ba43@mail.gmail.com
On 4/10/07, Tels <nospam-abuse@bloodgate.com> wrote:
> I can't comment much on this (I bet in a few years we know better :),
> however I would like to ask you to consider not to use too-strict
> prototypes.
>
> For instance, exp() expects *exactly* one argument, so even when you
> overload exp(), you cannot do:
>
>         exp($a,12);
>
> which is a limitation in the interface. Not sure if this applies to your
> work, but please consider that a future use might use more parameters :)

It really doesn't apply to Plugin.pm (see:
http://search.cpan.org/~avar/re-engine-Plugin-0.01/Plugin.pod). The
user can provide callbacks which mirror the callbacks used on the C
level (although some are wrapped as methods on the $re object which
ends up altering the regexp struct).

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About