On Mon, Feb 13, 2012 at 1:17 PM, Alois Schloegl
<alois.schlo...@ist.ac.at> wrote:
> There is not a strict dependency between these, most parts of these
> toolboxes can be used independently. There is only a very small overlap,
> namely
>  inst/sumskipnan.m
>  inst/covm.m
>  src/sumskipnan_mex.mex
>  src/covm_mex.mex

This is probably the same for any other dependency: when a package
depends on another, it doesn't mean it's using the full set of
functions provided by that package, just a few of them.

>
> One could make another small package (e.g. SkipNaN) out of this subset, and
> define the dependency against this newly introduced package. However, I'm
> hesitant to do this because users would need to download two instead of one
> package, and the SkipNaN-functions are only useful in combination with TSA-
> or NaN-tb.
>
>
> What's happening if both packages are loaded?
>
> These functions are exactly the same in both packages, so it does not matter
> which is installed first.

Besides the fact that it can be confusing for the user, that's only
true as long as the 2 versions are kept in sync. This also means that
whenever you make a change to one of those 2 MEX files, you'll have to
release both packages at the same time and make sure to tell those
users who happen to have both packages installed that they need to
upgrade both of them (otherwise you don't know which version the user
will end up using).

These are your packages and you manage them as you wish. I just don't
find it a very good idea to duplicate code like this across packages.

Michael.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to