[Webkit-unassigned] [Bug 34538] audio engine: add Complex number class

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 3 13:51:01 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=34538





--- Comment #8 from Darin Adler <darin at apple.com>  2010-02-03 13:51:00 PST ---
(In reply to comment #7)
> subclassing std::complex to add additional methods looks like a problem since
> the ivars are private.  I'd prefer, if at all possible, to have something
> lightweight and more easily modifiable to our needs.

The technique is not subclassing. It's functions that take and return complex
objects.

I hear you expressing your preference. But I don’t see a good reason to
consider std::complex heavyweight. And it comes with many of the functions
you’d want to use already implemented. We should really consider it seriously
before adding our own.

Maybe you could show some coding examples to clarify why the code ends up
looking so much cleaner with your class than if you used std::complex?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list