[Pkg-octave-devel] Dynare status

John W. Eaton jwe at octave.org
Thu Apr 23 15:55:44 UTC 2009

On 23-Apr-2009, Sébastien Villemot wrote:

| Rafael Laboissiere <rafael at debian.org> a écrit :
| > I would really prefer that there are no name clashes, unless Dynare needs
| > really to override the behavior of some of the standard Octave functions.
| > This is the case, for instance, of the package octave-graceplot.
| Currently there are at least two name clashes: rows.m and table.m (by  
| the way, is there any automatic way of detecting name clashes?).

No, Octave doesn't currently warn if you write a function that shadows
another one that is part of Octave.  Should it?  Should it only do
that for built-in functions, or all functions that are part of the
core Octave distribution, or all functions in the path (i.e., warn of
all duplicates)?

| There is no good reason for these name clashes; the only reason is  
| that Dynare is mainly developed under Matlab, and Octave doesn't  
| complain about clashes.
| Should I fix these right now (it is probably easy to rename them to  
| dynrows.m and dyntable.m respectively) ?

What does your rows function do?  That functiioion is widely used in
Octave code, so if you replace it with something that does not do the
same thing as Octave's rows function, you will cause a lot of trouble
for some users.  If your rows function does the same thing as
Octave's, then I think you should only install it when your code is
running in Matlab.


More information about the Pkg-octave-devel mailing list