From ... Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.e.nsc.no!nsc.no!nextra.com!uio.no!nntp.uio.no!not-for-mail From: Erik Naggum Newsgroups: comp.lang.lisp Subject: Re: Question about &rest, &key, and &allow-other-keys Date: 18 Jan 2004 21:36:46 +0000 Organization: Naggum Software, Oslo, Norway Lines: 14 Message-ID: <3283450606806605KL2065E@naggum.no> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: readme.uio.no 1074461806 14472 129.240.65.210 (18 Jan 2004 21:36:46 GMT) X-Complaints-To: abuse@uio.no NNTP-Posting-Date: Sun, 18 Jan 2004 21:36:46 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.lisp:10250 * rif | I have a structure with a large number of parameters. I would like to | have a function that gives certain defaults to a few of these members, | allows the caller to specify any members values explicitly, and | accepts the standard constructor defaults for the others. In addition to specifying the default values as Peter Seibel mentions, investigate the :CONSTRUCTOR option to DEFSTRUCT. -- Erik Naggum | Oslo, Norway Act from reason, and failure makes you rethink and study harder. Act from faith, and failure makes you blame someone and push harder.