unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* push and pop
@ 2005-01-07 18:21 JD Smith
  2005-01-07 19:39 ` David Kastrup
  2005-01-07 20:23 ` Stefan Monnier
  0 siblings, 2 replies; 11+ messages in thread
From: JD Smith @ 2005-01-07 18:21 UTC (permalink / raw




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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-01-10 20:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-07 18:21 push and pop JD Smith
2005-01-07 19:39 ` David Kastrup
2005-01-07 20:23 ` Stefan Monnier
2005-01-07 21:15   ` JD Smith
2005-01-08  2:19     ` Miles Bader
2005-01-08 15:34     ` Richard Stallman
2005-01-09 17:53       ` JD Smith
2005-01-09 19:04         ` Francis Litterio
2005-01-09 19:42         ` Luc Teirlinck
2005-01-09 19:56           ` David Kastrup
2005-01-10 20:27             ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).