From: Pascal Bourguignon
Subject: Re: How can I access function multiple-values partially (w/o warnings)?
Date: 
Message-ID: <87is1occ2c.fsf@thalassa.informatimago.com>
Jeffrey Cunningham <····················@boeing.com> writes:
> (multiple-value-bind (x y z) (somefunction)
> 	(format t "I'm only using z=~A~%" z))

By the way, another way to write it is:

 (let ((z (third (multiple-value-list (somefunction)))))
 	(format t "I'm only using z=~A~%" z))

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

Nobody can fix the economy.  Nobody can be trusted with their finger
on the button.  Nobody's perfect.  VOTE FOR NOBODY.
From: Pascal Costanza
Subject: Re: How can I access function multiple-values partially (w/o warnings)?
Date: 
Message-ID: <3ei560F3a6a4U1@individual.net>
Pascal Bourguignon wrote:
> Jeffrey Cunningham <····················@boeing.com> writes:
> 
>>(multiple-value-bind (x y z) (somefunction)
>>	(format t "I'm only using z=~A~%" z))
> 
> 
> By the way, another way to write it is:
> 
>  (let ((z (third (multiple-value-list (somefunction)))))
>  	(format t "I'm only using z=~A~%" z))

Make this (nth-value 2 (somefunction)), then you don't create an 
unnecessary list.


Pascal

-- 
2nd European Lisp and Scheme Workshop
July 26 - Glasgow, Scotland - co-located with ECOOP 2005
http://lisp-ecoop05.bknr.net/