help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Interactive function


From: Emanuel Berg
Subject: Re: Interactive function
Date: Tue, 11 Oct 2022 01:54:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Thibaut Verron wrote:

> I was thinking that the compiler might take offense at the
> use of the function before it is properly defined.

Before evaluating your function, do

  (describe-function #'function)

But it seems you cannot do

  (describe-function #'#')

However

  (describe-function (function function))

is fine :)

> But on second thought, it shouldn't really be different from
> resolving a recursive call.

Yes:

(defun describe-me ()
  (describe-function #'describe-me) )

(defun recurse-you (n)
  (if (not (zerop n))
    (+ n (recurse-you (1- n)))
    n) )

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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