[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Finding out the name of the dispatched function
From: |
Paul Kienzle |
Subject: |
Re: Finding out the name of the dispatched function |
Date: |
Sat, 15 Apr 2006 21:14:02 -0400 |
Help dispatch says:
dispatch('f')
List dispatch functions for 'f'
This doesn't quite do what you want.
Unfortunately dispatch('f','type') clears the dispatch rather than
displaying it. This could be changed to display so that
dispatch('f','type') displays the dispatch, and use something else
such as dispatch('f','type',[]) to clear it.
- Paul
On Apr 15, 2006, at 2:41 PM, Shai Ayal wrote:
Hi all,
Is there a way to find out the name of the dispatched function? An
example:
function xxx
disp("xxx")
endfunction
dispatch("yyy","xxx","any");
dispatch("zzz","xxx","any");
I would like to know in xxx whether it was called as xxx, yyy, or zzz.
Shai
-------------------------------------------------------------
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
-------------------------------------------------------------
-------------------------------------------------------------
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
-------------------------------------------------------------