[Top][All Lists]

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

Why (eval-when-compile (require 'foo)) does not bind functions during co

From: Marcin Borkowski
Subject: Why (eval-when-compile (require 'foo)) does not bind functions during compilation?
Date: Sun, 30 Aug 2015 06:40:57 +0200

As in the subject.  The manual says that it does define macros from the
library “foo”, but not functions.  Why is that so?  I would think that
the above form actually evaluates the (require 'foo) part during
compilation, so in particular it should evaluate all the defuns there –
but both experiments and manual confirm that I’m wrong.  Where is my
mental model incorrect?


Marcin Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

reply via email to

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