[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: declare in with-slots
- To: common-lisp-object-system@sail.stanford.edu
- Subject: Re: declare in with-slots
- From: kempf@Sun.COM
- Date: Wed, 03 Aug 88 11:47:10 -0700
- In-reply-to: Your message of Wed, 03 Aug 88 10:19:32 -0700. <8808031719.AA12130@rainbow-warrior.lucid.com>
I'm not sure I understand what all the fuss is about. Currently in
Common Lisp, the following is not allowed;
(multiple-value-bind (x y z)
(declare (fixnum x y z))
(multiple-return-value-function a b c)
...
)
Seems to me with-slots and with-accessors falls into the same category.
It would, of course, be nice to be able to do the above, just as it
would for with-slots, but the following also works in at least one
CL I've used:
(multiple-value-bind (x y z)
(multiple-return-value-function a b c)
(locally
(declare (fixnum x y z))
...
)
)
As to people not liking with-slots because it is Yet Another Scoping
Mechanism, I feel the same about the multiple value constructs, but
some people like them.
jak