[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: let-values* generates Unbound variable
From: |
Judy Hawkins |
Subject: |
Re: let-values* generates Unbound variable |
Date: |
Sun, 12 Jul 2009 16:45:18 -0700 (PDT) |
> 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