unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* let-values* generates Unbound variable
@ 2009-07-12 23:15 Judy Hawkins
  0 siblings, 0 replies; 3+ messages in thread
From: Judy Hawkins @ 2009-07-12 23:15 UTC (permalink / raw)
  To: bug-guile


let-values* is mentioned in the documentation for SRFI-11, but


guile> (version)
"1.8.5"
guile> (use-modules (srfi srfi-11))
guile> (let-values* (((x y) (values 1 2))) (list x y))

Backtrace:
In standard input:
   3: 0* (let-values* (((x y) (values 1 2))) (list x y))

standard input:3:1: In expression (let-values* (#) (list x y)):
standard input:3:1: Unbound variable: let-values*
ABORT: (unbound-variable)

so I don't know if this is a documentation bug or a code bug, but I sure would find let-values* a handy thing.

Judy Hawkins





      




^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: let-values* generates Unbound variable
@ 2009-07-12 23:45 Judy Hawkins
  2009-07-14  7:21 ` Neil Jerram
  0 siblings, 1 reply; 3+ messages in thread
From: Judy Hawkins @ 2009-07-12 23:45 UTC (permalink / raw)
  To: bug-guile


> Unbound variable: let-values*

So, in answer to my own question, it appears that my previous post is reporting a documentation bug, as using the spelling let*-values works just dandy:

guile> (let*-values (((x y) (values 1 2)) ((n m) (values (+ x x) (+ y y)))) (list n m))
(2 4)


In the reference manual for 1.8.5, searching on let-values gets me the following:


*(srfi srfi-11)*
     Multiple-value handling with `let-values' and `let-values*' (*note
     SRFI-11::).

----------- and in ------------------------------------------------

File: guile.info,  Node: SRFI-11,  Next: SRFI-13,  Prev: SRFI-10,  Up: SRFI Sup\
port

6.4.10 SRFI-11 - let-values
---------------------------

-------------- the last line reads -----------------------------

 `let-values*', on the other hand, performs the
bindings sequentially, just like `let*' does for single-valued
expressions.

---------------------------------------------------------------

(On doing one more search on let-values the net I turned up a page at  http://docs.plt-scheme.org that put me on to trying the let*-values spelling which solves my immediate problem.)

Judy Hawkins





      




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-14  7:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-12 23:15 let-values* generates Unbound variable Judy Hawkins
  -- strict thread matches above, loose matches on Subject: below --
2009-07-12 23:45 Judy Hawkins
2009-07-14  7:21 ` Neil Jerram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).