[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: invoke overwritten functions
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: invoke overwritten functions |
Date: |
Fri, 25 Jan 2013 12:05:35 -0500 |
On 25 January 2013 11:22, ernst <address@hidden> wrote:
> I have the problem that i need to invoke overwritten functions.
> Even worse, i want do invoke the overwritten function from within the
> overwriting function.
Matlab has a huge namespace problem:
http://abandonmatlab.wordpress.com/category/my-kingdom-for-a-namespace/
Octave has to mimic this problem. There is no simple solution for you.
The only advice I an offer is to not clobber the namespace.
For your particular case, depending on what you're doing, it sounds
like you want something like polymorphism. You can use old-style
classes to accomplish this:
http://www.gnu.org/software/octave/doc/interpreter/Function-Overloading.html
Sorry,
- Jordi G. H.