[Top][All Lists]

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

Re: Are nested defun's byte-compiled?

From: Stefan Monnier
Subject: Re: Are nested defun's byte-compiled?
Date: Fri, 20 May 2005 10:59:31 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> (defun foo ()
>   "Do foo stuff. Define `bar' if `define-bar-flag' is non-nil."
>   (when define-bar-flag (defun bar () (bar-stuff)))

Using `defun' inside the body of a function is very poor style.
I.e. don't do it.

As for your question: the byte-compiler compiles all the code.


reply via email to

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