home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!apple!apple!cambridge.apple.com!bill@cambridge.apple.com
- From: bill@cambridge.apple.com (Bill St. Clair)
- Newsgroups: comp.lang.lisp.mcl
- Subject: Re: record pattern
- Message-ID: <9208172014.AA06281@cambridge.apple.com>
- Date: 17 Aug 92 21:16:54 GMT
- Sender: info-mcl-request@cambridge.apple.com
- Lines: 44
- Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
- Full-Name: Bill St. Clair
- Original-To: Karsten Poeck <poeck@informatik.uni-wuerzburg.de>
- Original-Cc: info-mcl
-
- >to info-mcl@cambridge.apple.com
- >cc poeck@informatik.uni-wurzburg.de
- >
- >I am a little bit confused by the different definitions of the record
- >type
- >pattern in records.lisp being
- >
- >(defrecord pattern
- > (variant ((w0 integer)
- > (w1 integer)
- > (w2 integer)
- > (w3 integer))
- > ((b0 byte)
- > (b1 byte)
- > (b2 byte)
- > (b3 byte)
- > (b4 byte)
- > (b5 byte)
- > (b6 byte)
- > (b7 byte))
- > ((bytes (array byte 8)))
- > ((array (array :unsigned-byte 8)))))
- >
- >which is fine for use because we have used the b0 , bn variant in our
- >program
- >but which is commented
- >and the version in
- >
- >interfaces:quickdraw.lisp which is
- >
- >(defrecord (Pattern :handle) (array (array :unsigned-byte 8)))
- >
- >which definition of pattern is the best one? Is it safe to replace the
- >definition in quickdraw by the one in records
-
- The old definition is now considered obsolete. The one in
- "ccl:interfaces;quickdraw.lisp" conforms to the definition in Inside Macintosh.
- You can safely install the old definition in your world in one of two ways:
-
- 1) Put the old record definition in your code somewhere
- (ensuring that it is evaluated before any uses of it are compiled).
-
- 2) Replace the definition in "ccl:interfaces;quickdraw.lisp" and evaluate
- the form (reindex-interfaces).
-