Article View: comp.lang.clos
Article #470Re: Specializing on &OPTIONAL parameters (was moooo!)
From: Douglas S. Rand
Date: Thu, 21 Mar 1991 15:02
Date: Thu, 21 Mar 1991 15:02
23 lines
1339 bytes
1339 bytes
.... Lots of discussion about the topic But, there is nothing which prevents a programmer from creating a wrapper function with optional parameters which calls the generic function. So: (defun wrapper-function (x y &optional (a (sexp))) (function x y a)) (defmethod function ((x sp1) (y sp2) (a sp3)) body) Why doesn't this totally satisfy the question? Please don't tell me it's so people can specialized builtin functions to CL because the committee has already disallowed this one (unless it's changed while I wasn't looking :) ). -- Douglas S. Rand Internet: <dsrand@mitre.org> Snail: MITRE, Burlington Road, Bedford, MA Disclaimer: MITRE might agree with me - then again... Amateur Radio: KC1KJ
Technical Details
Message-ID:
<1991Mar21.150203.4822@linus.mitre.org>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!linus!linus!mir!dsrReferences:
<9103201709.AA20839@mingus.mitre.org> <31777@mimsy.umd.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.clos Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!linus!linus!mir!dsr From: dsr@mir.mitre.org (Douglas S. Rand) Subject: Re: Specializing on &OPTIONAL parameters (was moooo!) Message-ID: <1991Mar21.150203.4822@linus.mitre.org> Sender: news@linus.mitre.org (News Service) Nntp-Posting-Host: mir.mitre.org Reply-To: dsr@mir.mitre.org (Douglas S. Rand) Organization: The MITRE Corporation References: <9103201709.AA20839@mingus.mitre.org> <31777@mimsy.umd.edu> Distribution: inet Date: Thu, 21 Mar 1991 15:02:03 GMT