Re: [perl #59630] [BUG] Complex subtraction fails for subclasses of Complex

2008-10-08 Thread NotFound
On Wed, Oct 8, 2008 at 4:56 PM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > The problem appears to be that src/pmc/complex.pmc makes use of > RE() and IM() macros that no longer work for subclasses of the Complex PMC > and try to poke float values directly into the PMC struct. Unfortunately,

Re: [perl #59630] [BUG] Complex subtraction fails for subclasses of Complex

2008-10-08 Thread Patrick R. Michaud
On Tue, Oct 07, 2008 at 05:47:57PM -0700, Mark Glines via RT wrote: > On Tue Oct 07 08:14:04 2008, pmichaud wrote: > > Just for the record, I went ahead and added a version of my > > test script in this ticket to the test suite (t/pmc/complex.t). > > > > (The test still fails as of r31755, let me

Re: [perl #59630] [BUG] Complex subtraction fails for subclasses of Complex

2008-10-07 Thread Patrick R. Michaud
Just for the record, I went ahead and added a version of my test script in this ticket to the test suite (t/pmc/complex.t). (The test still fails as of r31755, let me know if it should be marked 'todo'.) Thanks, Pm

Re: [perl #59630] [BUG] Complex subtraction fails for subclasses of Complex

2008-10-06 Thread Patrick R. Michaud
On Mon, Oct 06, 2008 at 06:05:20AM -0700, NotFound via RT wrote: > I've done some work in this problem. The attached patch is a way to make > the examples work but I think this is not the way to go, or a lot of > functions in a lot of pmc will need changes. > [...] I agree this really isn't the wa

[perl #59630] [BUG] Complex subtraction fails for subclasses of Complex

2008-10-06 Thread NotFound via RT
I've done some work in this problem. The attached patch is a way to make the examples work but I think this is not the way to go, or a lot of functions in a lot of pmc will need changes. Index: src/pmc/complex.pmc === --- src/pmc/comp