Subject: Re: basic question about packages
From: rpw3@rpw3.org (Rob Warnock)
Date: Wed, 20 Aug 2003 09:28:16 -0500
Newsgroups: comp.lang.lisp
Message-ID: <PnGdnTdTULsdGN6iXTWc-g@speakeasy.net>
Thomas F. Burdick <tfb@famine.OCF.Berkeley.EDU> wrote:
+---------------
| Peter Seibel <peter@javamonkey.com> writes:
| > So I assume you don't use a single packages.lisp file containing all
| > the package declarations because it would be a point of contention
| > between multiple developers?
| 
| Oh god no!  That sounds like hell for two people working kind of
| closely -- I'd hate to think of the merging problems for five people
| working mostly independantly.
+---------------

Heh-heh! Take a look at the file "cmucl-18e/src/code/exports.lisp"
some time:

(defpackage "ANSI-LOOP")

(defpackage "C-CALL"
            (:export "C-STRING" "CHAR" "DOUBLE" "FLOAT" "INT" "LONG" "SHORT"
             "UNSIGNED-CHAR" "UNSIGNED-INT" "UNSIGNED-LONG" "UNSIGNED-SHORT"
             "VOID"))
(defpackage "INSPECT"
            (:export "*INTERFACE-STYLE*" "REMOVE-ALL-DISPLAYS"
             "REMOVE-OBJECT-DISPLAY" "SHOW-OBJECT"))
(defpackage "BIGNUM"
            (:export "%ADD-WITH-CARRY" "%ALLOCATE-BIGNUM" "%ASHL" "%ASHR"
             "%BIGNUM-LENGTH" "%BIGNUM-REF" "%BIGNUM-SET" "%BIGNUM-SET-LENGTH"
             "%DIGIT-0-OR-PLUSP" "%DIGIT-LOGICAL-SHIFT-RIGHT"
	     ...and so on...))
...and so on...
(defpackage "FORMAT")
(defpackage "COMMON-LISP"
            (:nicknames "CL" "LISP")
            (:export "&ALLOW-OTHER-KEYS" "&AUX" "&BODY" "&ENVIRONMENT" "&KEY"
             "&OPTIONAL" "&REST" "&WHOLE" "*" "**" "***"
             "*BREAK-ON-SIGNALS*"
             "*COMPILE-FILE-PATHNAME*" "*COMPILE-FILE-TRUENAME*"
             "*COMPILE-PRINT*" "*COMPILE-VERBOSE*" "*DEBUG-IO*"
	     ...and so on...))
...and so on...
...and so on...

They must have had a very different style of working together.


-Rob

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