[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Retrieve procedure name from within its definition
From: |
David Kastrup |
Subject: |
Re: Retrieve procedure name from within its definition |
Date: |
Wed, 21 Feb 2018 20:17:25 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Urs Liska <address@hidden> writes:
> Hi,
>
> is it possible to retrieve the name of a function currently being defined?
>
> myFunc =
> #(define-void-function (arg)(type?)
> (display (function-that-returns-'myFunc'))
No. define-void-function creates an anonymous function. It's assigned
to myFunc here, but it could also get passed as an argument, made an
element of an array or whatever else.
At the time the function is being defined, there is no name associated
with it.
--
David Kastrup