[armedbear-devel] [patch] compile slightly broken for compiled functions

Rudolf Schlatte rudi at constantly.at
Tue Aug 14 16:27:45 UTC 2012

On Aug 11, 2012, at 20:58, Vladimir Sedach <vsedach at gmail.com> wrote:

> (compile nil (compile nil (lambda ()))) => NIL
> (compile '+) => +
> The first result is obviously wrong, and the second one is actually as
> well (according to the HyperSpec, compile should return the function
> definition of +).

The second one is actually correct behavior (CLHS says "If a non-nil name is given, then the resulting compiled function replaces the existing function definition of name and the name is returned as the primary value").


More information about the armedbear-devel mailing list