[Top][All Lists]

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

caller function? function to get dependencies?

From: Andreas Romeyke
Subject: caller function? function to get dependencies?
Date: Fri, 20 Apr 2007 09:18:05 +0200
User-agent: Icedove (X11/20070329)

Hash: SHA1


exists there a function to get function dependencies or access to
function stack similar to depfun() from within of octave interpreter?
I did not found such a function or variable.

My idea is to use a combination of functions clear() and who() to
emulate depfun(), but the problem will be that the dependency graph
will be flatten:
1. call who() to find actual used functions
2. call function which should be tested
3. call who() again to get new compiled/used functions
4. compare function list from 1. with function list from 3. The
intersection set is the list of functions called by the tested
function (in 2.)
5. clear all functions from intersection set
6. repeat 2. ... 6. until all functions tested

It would be very helpful to use such a function because in a testing
tool we could weight the order of testing. If there is not such a
possibility to get function dependencies from within of octave, where
is the best place to have a look into Octave code to write an
extension for octave in C++?

Thanks for your comments,

Bye Andreas

- --
Software Developer / Dipl. Inform. (FH)
Max Planck Institute for Human Cognitive and Brain Sciences
Department of Psychology
Stephanstr. 1a, 04103 Leipzig, Germany

Version: GnuPG v1.4.6 (GNU/Linux)


reply via email to

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