home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!spool.mu.edu!yale.edu!not-for-mail
- From: theodore-michael@yale.edu (Michael Theodore)
- Newsgroups: comp.lang.lisp
- Subject: Lucid Lisp complains about this code fragment
- Date: 4 Jan 1993 21:50:16 -0500
- Organization: Yale University Science & Engineering UNIX(tm), New Haven, CT 06520-2158
- Lines: 28
- Message-ID: <1iat18INNii@MINERVA.CIS.YALE.EDU>
- NNTP-Posting-Host: minerva.cis.yale.edu
-
- Any thoughts on how to correct this?
- For some reason, what follows is no problem on Vax Lisp, nor on Macintosh
- Common Lisp, but when run on Lucid Lisp gets a warning :
- ;;Warning function tweak defined more than once
-
- I wouldn't care if it weren't for the fact that warning is printed to the
- screen repeatedly (about 50 times).
-
- (defun addNoiseToListOfNumbers (l)
- (defun tweak (x)
- (+
- x
- (- (* (random 1000) 0.0001) 0.05)))
- (mapcar #'tweak l))
-
- Please excuse my ignorance if this is a very obvious problem.
-
- Thanks,
- Michael
-
-
- (BTW, this function is from some code in a book by Mark Watson entitled
- "Common Lisp Modules - Artificial Intelligence in the Era of Neural Networks
- and Chaos Theory").
-
- --
- Practice random acts of randomness.........
- theodore-michael@cs.yale.edu
-