Lisp HUG Maillist Archive

Function call

Hi,

Which the function to use to find programmatically all the functions which
call a given function ?

Another related question : is it possible for a function to determine which
function called it ?

Thanks by advance

Denis


----------------------------------------------------
Denis Pousseur
6 clos du Drossart
1180 Bruxelles, Belgique

Mail :  denis.pousseur@compositeurs.be
Website : http://compositeurs.be
----------------------------------------------------



Re: Function call

That should be HCL:WHO-CALLS

CL-USER 11 > (defun text ())
TEXT

CL-USER 12 > (defun text-caller () (text))
TEXT-CALLER

CL-USER 13 > (hcl:who-calls 'text)
(TEXT-CALLER)

CL-USER 14 >

As for the second question, I think you have to invoke the debugger and look
through the stack frames.

Wade


Denis Pousseur wrote:

>Hi,
>
>Which the function to use to find programmatically all the functions which
>call a given function ?
>
>Another related question : is it possible for a function to determine which
>function called it ?
>
>Thanks by advance
>
>Denis
>
>
>----------------------------------------------------
>Denis Pousseur
>6 clos du Drossart
>1180 Bruxelles, Belgique
>
>Mail :  denis.pousseur@compositeurs.be
>Website : http://compositeurs.be
>----------------------------------------------------
>
>
>
>  
>


Updated at: 2020-12-10 08:50 UTC