[Openmcl-devel] consing

Ron Garret ron at flownet.com
Tue May 14 10:43:43 PDT 2013


On May 14, 2013, at 10:17 AM, Ralf Stoye wrote:

> @Ron
> 
>> That is not true.  Stacks and cons cells are fundamentally different data structures.  You can build a stack out of cons cells, but you can't build cons cells out of a stack.  A stack is *strictly* a last-in-first-out data structure, which is the reason it doesn't need to be garbage collected.
> 
> sure you can allocate cons cells on a stack, but you will crash if you return this list to the caller (try dynamic-extent for that ;-) )

"Allocating a cons cell on a stack" is not the same thing as "building a cons cell out of a stack."

> So please give an example

> this list is not about education,

Make up your mind.

rg




More information about the Openmcl-devel mailing list