Article View: comp.lang.lisp.mcl
Article #721Re: Correct to ignore params to :around methods?
From: kab Kim Barrett
Date: Sun, 10 Jan 1993 00:59
Date: Sun, 10 Jan 1993 00:59
20 lines
1277 bytes
1277 bytes
> I use :around methods to bind special variables and then > call call-next-method with no parameters. > > This works, but causes compiler warnings for each non- > specialized parameter. > > I can get rid of the warnings by declaring to ignore > the parameters, but I feel uncomfortable doing that since > the parameters are in fact "used" by the method called > by call-next-method. Ignoring them works, but would it > work if my declaration were trusted? > > What is the correct way to handle this? > Thanks for any assistance. Declaring the variables "ignore" is correct, since you really aren't using those parameters. You are instead "using" a conceptual hidden parameter containing all of the values received by the method. This is one of those cases where the distinction between argument values and parameter variables is important and should not be conflated.
Technical Details
Message-ID:
<9301100059.AA07896@cambridge.apple.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!apple!goofy!cambridge.apple.com!kabShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!apple!goofy!cambridge.apple.com!kab From: kab (Kim Barrett) Newsgroups: comp.lang.lisp.mcl Subject: Re: Correct to ignore params to :around methods? Message-ID: <9301100059.AA07896@cambridge.apple.com> Date: 10 Jan 93 00:59:17 GMT Sender: info-mcl-request@cambridge.apple.com Lines: 20 Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M