Subject: Re: Dynamic function generation, HOW?
From: (Rob Warnock)
Date: Sat, 07 Oct 2006 05:59:50 -0500
Newsgroups: comp.lang.lisp
Message-ID: <>
<> wrote:
| I am very facinated by the fact that lisp can generate functions on the
| fly.  But what facinates me even more is where is this chunk of code in
| the form of a new function allocated? on the heap, or on the stack, ...

On the heap.

Or rather, in one of the heaps, depending on how your specific
implementation's GC works. That is, there might be a heap for
code that is different for the heap used for conses, say.
Or code might go into a (sub)heap that uses mark-and-sweep GC
instead of 2-space-copying, to avoid the need for code
relocation at GC time. That sort of thing.


Rob Warnock			<>
627 26th Avenue			<URL:>
San Mateo, CA 94403		(650)572-2607