GNU bug report logs -
#7408
23.2.1 dolist -- subr.el and cl-macs differ with nil-block return
Previous Next
Reported by: Jari Aalto <jari.aalto <at> cante.net>
Date: Mon, 15 Nov 2010 10:47:02 UTC
Severity: normal
Found in version 23.2+1-4
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
Message #46 received at 7408 <at> debbugs.gnu.org (full text, mbox):
> The 'return' has been integral part of 'dolist' since the start.
Who cares?
> | After (require 'cl), `return' gets defined and things work as you
> | expect.
> The implementation in subr.el::dolist does not have any support for
> 'return'.
Again, who cares? If you want to use `return' you need to require the
package that defines it.
> It is not that 'return' gets defined, but what happens is that loading
> CL clobbers that current definition pf 'dolist' by overwiting it with
> its own implementation:
And? Why would you care? Without looking at the source code, can you
tell the difference?
> Naturally, loading CL also defines other things. But the fundamental
> problem is two incompatible dolist implementations.
You still haven't shown any evidence of incompatibility.
Show me a piece of code which would work with CL's dolist (but without
CL's return) and yet doesn't work with subr.el's dolist.
Stefan
This bug report was last modified 14 years and 185 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.