summaryrefslogtreecommitdiff
path: root/s7.html
diff options
context:
space:
mode:
Diffstat (limited to 's7.html')
-rw-r--r--s7.html15
1 files changed, 13 insertions, 2 deletions
diff --git a/s7.html b/s7.html
index 0eb7808..a54948a 100644
--- a/s7.html
+++ b/s7.html
@@ -4127,6 +4127,17 @@ in the procedure's local environment:
> (documentation func)
<em class="gray">"helpful info"</em>
</pre>
+<p>Since documentation is a method, a function's documentation can be computed at run-time:
+</p>
+<pre class="indented">
+(define func
+ (let ((documentation (lambda (f) (format #f "this is func's funclet: ~S" (funclet f)))))
+ (lambda (x)
+ (+ x 1))))
+
+&gt; (documentation func)
+<em class="gray">"this is func's funclet: (inlet 'x ())"</em>
+</pre>
<p>
<b>arity</b> takes any object and returns either #f if it is not applicable,
@@ -4974,7 +4985,7 @@ which allows you to stop at some point, then evaluate arbitrary expressions in t
<div class="indented">
-<p>The s7-built-in catch tags are 'wrong-type-arg, 'syntax-error, 'read-error,
+<p>The s7-built-in catch tags are 'wrong-type-arg, 'syntax-error, 'read-error, 'unbound-variable,
'out-of-memory, 'wrong-number-of-args, 'format-error, 'out-of-range, 'division-by-zero, 'io-error, and 'bignum-error.
</p>
</div>
@@ -6197,7 +6208,7 @@ same kind of name (or +pi+ to show it is a constant?).
get-output-string should be current-output-string. write-char behaves like display, not write.
provided? should be feature? or *features* should be *provisions*.
list-ref, list-set!, and list-tail actually only apply to pairs.
-And let-temporarily should be templet.
+And let-temporarily should be templet, or maybe set-temporarily.
</p>
<p>