Documenting (system repl server)

2013-03-18 Thread Ian Price
It isn't much but I've had a stab at documenting (system repl server) so that I could feel less guilty about suggesting people use it. Aside from it's sparseness, the two main issues I've had are 1. Under what section of the manual should it be placed, and 2. How to represent complex optional arg

[PATCH] SRFI-45: Support delayed expressions that return multiple values

2013-03-18 Thread Mark H Weaver
Hello all, It turns out that Guile's built-in 'delay' and 'force' support multiple values properly, but the ones from SRFI-45 do not. --8<---cut here---start->8--- scheme@(guile-user)> (define promise (delay (values 1 2))) scheme@(guile-user)> (force promise) $

Re: [PATCH] SRFI-45: Support delayed expressions that return multiple values

2013-03-18 Thread Ian Price
Mark H Weaver writes: > Any objections to pushing this to stable-2.0? Change is simple enough, and it matches the behaviour of built-in force/delay. Should be a rubber stamp IMO :) I note Eli Barzilay contributed some changes in the post-finalisation archive for srfi 45 to support multiple valu

Re: [PATCH] SRFI-45: Support delayed expressions that return multiple values

2013-03-18 Thread Mark H Weaver
Here's an improved patch that updates the manual and adds tests. Mark >From 220fb56249b462ad1b205a45a4953e6dc857c96e Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Mon, 18 Mar 2013 20:01:12 -0400 Subject: [PATCH] SRFI-45: Support delayed expressions that return multiple values. * mod

[PATCH] SRFI-45: Support multiple values; add promise? predicate

2013-03-18 Thread Mark H Weaver
Apologies for the rapid-fire posts, but having looked at Racket's SRFI-45 module, I see that they added 'promise?' to the list of exports, and I think we should too. As things stand now, (promise? (delay 1)) returns #f if you have imported SRFI-45, and that seems wrong. If we replace 'delay' and