home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!apple!apple!cambridge.apple.com!straz@cambridge.apple.com
- From: straz@cambridge.apple.com (Steve Strassmann)
- Newsgroups: comp.lang.lisp.mcl
- Subject: another error in my tiny test program
- Message-ID: <9207271522.AA28958@cambridge.apple.com>
- Date: 27 Jul 92 16:58:41 GMT
- Sender: info-mcl-request@cambridge.apple.com
- Lines: 29
- Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
- Full-Name: Steve Strassmann
- Original-To: info-mcl
-
- Date: Mon, 27 Jul 1992 11:36:29 -0500
- To: Steve Strassmann <straz@cambridge.apple.com>
- From: bill@cambridge.apple.com (Bill St. Clair)
- Subject: Re: Error in my tiny test program
-
- >(defun drop-ball (&optional (window *window*))
- > (let ((v 1) ; vertical position
- > (h 1) ; horizontal position
- > (size 10) ; size of ball
- > (height 20)) ; initial height of ball
- > (while (< height 120)
- > (if (oddp h)
- > (visible window)
- > (invisible window))
- > (paint-oval window h v (+ h size) (+ v size))
- > (setf v (+ v 3)
- > h (+ h 5)
- > height (+ height v)))))
-
- I have to thank Bill for pointing out some bugs in my
- last message.
-
- The WHILE macro is not part of CLtL2. It is available
- in MCL 2.0 in the CCL package, but it is not exported.
- So, if you want to use it, you have to say CCL::WHILE.
-
- Also, PAINT-OVAL is part of the QUICKDRAW example file.
- You either need to (require "QUICKDRAW") or use the
- #_paintoval trap directly.
-