[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- To: commonloops.pa@Xerox.COM
- From: David Alpern <Alpern@IBM.COM>
- Date: Wed, 21 Jun 89 22:06:02 PDT
- Redistributed: commonloops.pa
I just took a look at defconstruct, as present in the "No cute name"
release. I hope I'm not missing something simple, but one thing I'd
like to have is very simple make- routines that don't care a bit
about the initialization arguments, just to provide a little abstraction
above the *make-instance call. In other words,
(defun make-foo (&rest plist)
(apply #'pcl::*make-instance 'foo plist))
I would have though that would be what defconstruct would be great at,
but I can't figure out how to set it up so that the &rest arg (plist
above) is treated as a list of initialization arguments rather than
as just a single item. To do this above, I needed to use apply --
but what can one do with defconstructor?
- Dave
David M. Alpern
IBM Almaden Research Center, K31/802
650 Harry Road, San Jose, CA 95120-6099
Phone: (408) 927-2067
Internet: ALPERN@IBM.COM
Bitnet: ALPERN at ALMVMC