On Thu, 18 Jul 2002, darren chamberlain wrote:

> I'd like to add a couple of new virtual methods to Template::Stash: merge,

> commify

I think commify would probably be better implemented as a filter plugin.  
In terms of I18N the way commify acts should probably be different for
different languages and countries.

Is it easy to add virtual methods with a plugin?  I haven't really given 
it much thought. 

> Merge

It's a nice alternative to splice, and fits nicely with everything else.  
I'd say go with it.

What are the actual drawbacks to adding more virtual methods in terms of 
bloat.

 a) Do we slow things down when we add more virtual methods?  By how much?

 b) Do we risk name clashes with blessed objects.  For example, does
    my number class that has it's own "commify" operator risk having
    that overridden by the virtual method?

Mark

-- 
s''  Mark Fowler                                     London.pm   Bath.pm
     http://www.twoshortplanks.com/              [EMAIL PROTECTED]
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/  +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}



Reply via email to