help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WaveLab error & fix!


From: pkienzle
Subject: Re: WaveLab error & fix!
Date: Mon, 18 Aug 2003 23:10:08 +0100

On 18 Aug 2003 at 10:27, Laurent Jacques wrote:

> It seems that octave uses its own reverse function instead of the Wavelab 
> ones.

The problem is that m-files in the path do not override built-in
functions (or oct-files for that matter).  In this particular case
you could rename Wavelab's reverse to something like Wavelab_reverse, 
and use dispatch from octave-forge to call Wavelab_reverse instead of 
reverse when it receives a matrix.  Something like:

        dispatch("reverse","Wavelab_reverse","matrix");

A better solution might be to extend the built-in reverse so that
it handles the common types, and send John a patch.

Long term as octave grows, it would be nice if there were a way to 
limit functions to a private name space of a package, ignoring any 
definitions available elsewhere.

Paul Kienzle
address@hidden



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]