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

Re: inherted overload & mixed type operations



On Wed, Jan 12, 2000 at 02:40:24AM +0100, Marc Lehmann wrote:
> (p:4)   Overloaded operator `*':
>         method for left argument found in package PDL::Complex
>         (p:4)   nextstate

So the output is what one expects.  I do not see any bug.

Sorry, but so far all I see indicates possible bugs in PDL or
PDL::Complex, and no *clear* indication of a bug in Perl.  It *might*
be a bug in Perl, but without a clear indication I'm not going to
build PDL, PDL::Complex and try to debug them.

> more detailed info just drop me a note). The interesting thing is, when I
> add an eval-wrapped copy of line 4 before that line, then my operator is
> being called ON THE SECOND TIME, but not the first time.
> 
> ((eval 11):1)   pushmark
> ((eval 11):1)   const(PV("now in Cmul, "))
> ((eval 11):1)   pushmark
> ((eval 11):1)   gvsv(main::")
> ((eval 11):1)   gv(main::_)
> ((eval 11):1)   rv2av
> ((eval 11):1)   join
> ((eval 11):1)   Overloaded operator `""':
> 
> (I use an anonymous sub that prints "now in Cmul" for my '*'-operator)

Please consider your style: you send -D* output without showing the script.

Ilya


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]