multiple-value-bind only accepts symbols
- From: Philippe Lorin <palpalpalpal@xxxxxxxxx>
- Date: Mon, 17 Oct 2005 12:11:09 +0200
Is there a reason multiple-value-bind only accepts symbols, not places? And what would be the best way to do the equivalent with places? I can write this, but it's a bit ugly:
(let ((a-and-b (multiple-value-list
(some-function-that-returns-two-values))))
(setf (slot-a x) (first a-and-b))
(setf (slot-b x) (second a-and-b)))
I'd much rather have something that would look like this:
(multiple-value-bind-extra ((slot-a x) (slot-b x))
(some-function-that-returns-two-values))Of course I can define multiple-value-bind-extra, but before doing that I wanted to know if something alike did not exist already.
.
- Follow-Ups:
- Re: multiple-value-bind only accepts symbols
- From: Pascal Bourguignon
- Re: multiple-value-bind only accepts symbols
- From: Juho Snellman
- Re: multiple-value-bind only accepts symbols
- Prev by Date: Re: Lisp versus Prolog
- Next by Date: Re: Lisp versus Prolog
- Previous by thread: Lisp versus Prolog
- Next by thread: Re: multiple-value-bind only accepts symbols
- Index(es):