[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: inherted overload & mixed type operations



Marc Lehmann wrote:
> The problem is that there is no documented way to overwrite or enhance
> overloaded methods from other modules.

I don't think that's quite true. perldoc overload tells you how to do
it.
E.g. in complex.pd:

 {package PDL; use overload '+' => $PDL::bop_sbclasschk{'+'}}

or use an

  eval 'use overload ...'

at runtime.

  Christian


Follow-Ups from:
Marc Lehmann <marc@gimp.org>
References to:
Marc Lehmann <marc@gimp.org>
Ilya Zakharevich <ilya@math.ohio-state.edu>
Marc Lehmann <marc@gimp.org>
Ilya Zakharevich <ilya@math.ohio-state.edu>
Marc Lehmann <marc@gimp.org>
Ilya Zakharevich <ilya@math.ohio-state.edu>
Marc Lehmann <marc@gimp.org>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]