Skip to content
Prev 17538 / 63424 Next

two almost identical packages: best practice

On 9 Sep 2005, r.hankin at noc.soton.ac.uk wrote:
One solution would be to define a common base class (perhaps nionBase? ;-)
and put the common methods there.

So in S3 I guess you'd have an Im.nionBase function and your octonions
and quaternions would be subclasses of nionBase.
If you document the generics for the base class, I think that would
work.  Otherwise, find/replace.
If they need to be in separate packages, perhaps you have three
packages:

nionBase
quaternion (depends on nionBase)
etc.

HTH,

+ seth