home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / lisp / mcl / 1965 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.2 KB

  1. Path: sparky!uunet!olivea!apple!goofy!cambridge.apple.com!kab
  2. From: kab (Kim Barrett)
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: Re: Correct to  ignore params to :around methods?
  5. Message-ID: <9301100059.AA07896@cambridge.apple.com>
  6. Date: 10 Jan 93 00:59:17 GMT
  7. Sender: info-mcl-request@cambridge.apple.com
  8. Lines: 20
  9. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  10.  
  11. > I use :around methods to bind special variables and then
  12. > call call-next-method with no parameters.
  13. > This works, but causes compiler warnings for each non-
  14. > specialized parameter.
  15. > I can get rid of the warnings by declaring to ignore 
  16. > the parameters, but I feel uncomfortable doing that since 
  17. > the parameters are in fact "used" by the method called 
  18. > by call-next-method. Ignoring them works, but would it 
  19. > work if my declaration were trusted?
  20. > What is the correct way to handle this? 
  21. > Thanks for any assistance.
  22.  
  23. Declaring the variables "ignore" is correct, since you really aren't using 
  24. those parameters.  You are instead "using" a conceptual hidden parameter 
  25. containing all of the values received by the method.  This is one of those 
  26. cases where the distinction between argument values and parameter variables is 
  27. important and should not be conflated.
  28.