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