home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / lisp / mcl / 1252 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.8 KB

  1. Path: sparky!uunet!olivea!apple!apple!cambridge.apple.com!bill@cambridge.apple.com
  2. From: bill@cambridge.apple.com (Bill St. Clair)
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: Re: record pattern
  5. Message-ID: <9208172014.AA06281@cambridge.apple.com>
  6. Date: 17 Aug 92 21:16:54 GMT
  7. Sender: info-mcl-request@cambridge.apple.com
  8. Lines: 44
  9. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  10. Full-Name: Bill St. Clair
  11. Original-To: Karsten Poeck <poeck@informatik.uni-wuerzburg.de>
  12. Original-Cc: info-mcl
  13.  
  14. >to info-mcl@cambridge.apple.com
  15. >cc poeck@informatik.uni-wurzburg.de
  16. >
  17. >I am a little bit confused by the different definitions of the record
  18. >type
  19. >pattern in records.lisp being
  20. >
  21. >(defrecord pattern 
  22. >  (variant ((w0 integer)
  23. >            (w1 integer)
  24. >            (w2 integer)
  25. >            (w3 integer))
  26. >           ((b0 byte)
  27. >            (b1 byte)
  28. >            (b2 byte)
  29. >            (b3 byte)
  30. >            (b4 byte)
  31. >            (b5 byte)
  32. >            (b6 byte)
  33. >            (b7 byte))
  34. >           ((bytes (array byte 8)))
  35. >           ((array (array :unsigned-byte 8)))))
  36. >
  37. >which is fine for use because we have used the b0 , bn variant in our
  38. >program
  39. >but which is commented
  40. >and the version in 
  41. >
  42. >interfaces:quickdraw.lisp which is
  43. >
  44. >(defrecord (Pattern :handle) (array (array :unsigned-byte 8)))
  45. >
  46. >which definition of pattern is the best one? Is it safe to replace the
  47. >definition in quickdraw by the one in records
  48.  
  49. The old definition is now considered obsolete. The one in
  50. "ccl:interfaces;quickdraw.lisp" conforms to the definition in Inside Macintosh.
  51. You can safely install the old definition in your world in one of two ways:
  52.  
  53. 1) Put the old record definition in your code somewhere
  54.    (ensuring that it is evaluated before any uses of it are compiled).
  55.  
  56. 2) Replace the definition in "ccl:interfaces;quickdraw.lisp" and evaluate
  57.    the form (reindex-interfaces).
  58.