[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
push and pop
From: |
JD Smith |
Subject: |
push and pop |
Date: |
Fri, 07 Jan 2005 11:21:53 -0700 |
User-agent: |
Pan/0.14.2.91 (As She Crawled Across the Table) |
The macros "push" and "pop" in `subr' don't do the same thing as the push
and pop in `cl'. This means that if you use:
(eval-when-compile (require 'cl))
in your code, the behavior will change depending on whether the compiled
version is loaded (cl version), or you are interactively debugging (subr
version). An example of a semantic which will fail with the subr version
but not the cl version:
(setq ov (pop (cdr ov-list)))
which requires a list argument to pop, instead of the cdr of a list.
Any suggestions on how to work around this (other than the obvious "don't
do that")?
Thanks,
JD
- push and pop,
JD Smith <=
- Re: push and pop, David Kastrup, 2005/01/07
- Re: push and pop, Stefan Monnier, 2005/01/08
- Re: push and pop, JD Smith, 2005/01/07
- Re: push and pop, Miles Bader, 2005/01/07
- Re: push and pop, Richard Stallman, 2005/01/08
- Re: push and pop, JD Smith, 2005/01/09
- Re: push and pop, Francis Litterio, 2005/01/09
- Re: push and pop, Luc Teirlinck, 2005/01/09
- Re: push and pop, David Kastrup, 2005/01/09
- Re: push and pop, Richard Stallman, 2005/01/10