From: MenTaLguY <me...@ry...> - 2007-03-16 00:26:10
|
On Thu, 2007-03-15 at 12:01 -0700, MenTaLguY wrote: > In C++, I don't know whether it would work best for e.g. D2<SBasis> to > derive from Curve, or whether we keep SBasisCurve, which derives from > Curve and D2<SBasis> both. Alternately, we could do what the Haskell version does -- offer a choice between compile-time polymorphism (direct uses of SBasis, Bezier, etc) and run-time polymorphism (wrapped in Curve). That lets us choose either approach as appropriate, without forcing a performance tradeoff. -mental |