[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dolist and dotimes?
From: |
Miles Bader |
Subject: |
Re: dolist and dotimes? |
Date: |
04 Dec 2001 04:43:52 +0900 |
address@hidden (Pavel Janík) writes:
> we do have the same defmacros dolist and dotimes in subr.el and
> cl-macs.el. Do we want to have duplicates in cl-macs.el (subr.el is always
> loaded).
They are slightly different -- the cl versions put a `(block nil ...)'
around the loop. Since this is basically a no-op unless you actually
use it (though slightly more inefficient), it's OK, and necessary, to
let them override the subr versions when code does (require 'cl).
I suppose that non-cl-using code that is compiled at the same time may
inadvertently end up using the more inefficient versions, but it's
probably not _that_ big a deal ...
-Miles
--
Yo mama's so fat when she gets on an elevator it HAS to go down.