Alan Manuel Gloria scripsit:

> But to receive it, you'd have to use something like:
> 
> call-with-values
> ! lambda ()
> ! ! i-expr port whatever
> ! lambda args $ cond
> ! ! null?(args) $ do-whatever-with-no-value
> ! ! else $ do-whatever-with $ car args

Well, (let-values args) ...) does the job nicely, and is provided by
the highly portable SRFI 11 and natively by R7RS.  In Common Lisp,
`multiple-value-bind` does not accept a `&rest` argument, but there is
`multiple-value-list`.

Still, the point that not all Lisps provide multiple values is a
strong one.

-- 
The first thing you learn in a lawin' family    John Cowan
is that there ain't no definite answers         co...@ccil.org
to anything.  --Calpurnia in To Kill A Mockingbird

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss

Reply via email to