SRFI-45: Support multiple values; add promise? predicate.
authorMark H Weaver <mhw@netris.org>
Tue, 19 Mar 2013 00:01:12 +0000 (20:01 -0400)
committerMark H Weaver <mhw@netris.org>
Tue, 19 Mar 2013 14:29:44 +0000 (10:29 -0400)
commit1d64b4edb9da4011ad06c0fab1c6225ec20b0876
tree69b2edd1a1917b861c6a2b3932d81f0fc60daa4f
parent8150dfa1f2f84d151ced5f723dc69ce0cae1cd32
SRFI-45: Support multiple values; add promise? predicate.

* module/srfi/srfi-45.scm (eager): Accept any number of arguments.
  Store the list of arguments in the value record.  Previously, only one
  argument was accepted, and that value was stored in the value record.
  (delay): Support expressions that return any number of arguments.
  (force): Return the list of values stored in the value record.
  (promise?): Export.

* doc/ref/srfi-modules.texi (SRFI-45): Update docs.  Remove typing
  for simplicity in discussing multiple values.

* test-suite/tests/srfi-45.test: Add tests.  Add FSF copyright for 2010
  and 2013.  Add missing year to AndrĂ© van Tonder's copyright notice.
doc/ref/srfi-modules.texi
module/srfi/srfi-45.scm
test-suite/tests/srfi-45.test