[cl-utilities-devel] small bug in "cl-utilities-1.1.1/package.lisp"

Rob Warnock rpw3 at rpw3.org
Fri Oct 21 10:35:30 UTC 2005


Peter,

I just snarfed <http://www.common-lisp.net/project/cl-utilities/
cl-utilities-latest.tar.gz> [seems to be version 1.1.1], and found
that a name change in "collecting.lisp" wasn't carried through *quite*
far enough...  ;-}

In the :EXPORT section of (DEFPACKAGE :CL-UTILITIES ...), the symbol
#:WITH-COLLECT should be #:WITH-COLLECTORS.

With that change, the following works as expected:

    (asdf:operate 'asdf:load-op :cl-utilities)
    (shadowing-import '(cl-utilities:collect cl-utilities:once-only))  ;[1]
    (use-package :cl-utilities)
    (with-collectors (foo bar)
      (foo 2)
      (bar 3)
      (bar 4)
      (foo 5)
      (bar 6))  ==>  (2 5), (3 4 6)


-Rob

[1] The SHADOWING-IMPORT is necessary for me since my "~/.cmucl-init"
    has already interned COLLECT & ONCE-ONLY into COMMON-LISP-USER.

-----
Rob Warnock			<rpw3 at rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607




More information about the cl-utilities-devel mailing list