Lisp HUG Maillist Archive

Caller

Hello all,

Is there any way to get the name of the calling function, as in Perl's caller function? (It could be of great use for debug logging!)

I suppose the call stack can be examined from the code somehow...

Regards
Erik


RE: Caller

Hi Erik,


Is hcl:who-calls what you want?



Chris

> From: erik.ronstrom@doremir.com
> Subject: Caller
> Date: Mon, 29 Aug 2011 01:01:05 +0200
> To: lisp-hug@lispworks.com
>
>
> Hello all,
>
> Is there any way to get the name of the calling function, as in Perl's caller function? (It could be of great use for debug logging!)
>
> I suppose the call stack can be examined from the code somehow...
>
> Regards
> Erik
>

Re: Caller

On Mon, Aug 29, 2011 at 1:01 AM, Erik Ronström
<erik.ronstrom@doremir.com> wrote:
> Is there any way to get the name of the calling function, as in Perl's caller function? (It could be of great use for debug logging!)
>
> I suppose the call stack can be examined from the code somehow...

Slime's debugger interface seems to provide this, see functions like
find-topframe and next-frame.

- Willem


Re: Caller

Unable to parse email body. Email id is 11213

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