[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Keywords in make-instance?
- To: Bobrow.pa@Xerox.COM
- Subject: Keywords in make-instance?
- From: Rob Pettengill <rcp%sw.MCC.COM@MCC.COM>
- Date: Thu, 2 Jun 88 16:59:48 CDT
- Cc: Timothy.Freeman@proof.ergo.cs.cmu.edu, commonloops.pa@Xerox.COM
- In-reply-to: Danny Bobrow's message of 27 May 88 17:05 PDT <880527-170756-101@Xerox>
- Redistributed: commonloops.pa
Date: 27 May 88 17:05 PDT
From: Danny Bobrow <Bobrow.pa@xerox.com>
Make-instance takes keyword arguments like this:
(make-instance 'class :key1 arg1 :key2 arg2 ...)
It could take ordinary symbols instead of keywords like this:
(make-instance 'class 'key1 arg1 'key2 arg2 ...)
Common Lisp does not specify that a keyword argument MUST come from the keyword
package. They only do so by default. The keyword arguments for make-instance
obey thi same rule.
danny
This was my interpretation as well. However, CLtL, does not
explicitly say that the &key keyword can come from any package. At
least one vendor, (Lucid 2.04), restricts function lambda list &key
keywords to being in the keyword package.
;rob
Robert C. Pettengill, MCC Software Technology Program
P. O. Box 200195, Austin, Texas 78720
ARPA: rcp@mcc.com PHONE: (512) 338-3533
UUCP: {ihnp4,seismo,harvard,gatech,pyramid}!ut-sally!im4u!milano!rcp