[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-scheme] 116/324: utils: hat-let: Fix inline procedure definition
From: |
gnunet |
Subject: |
[gnunet-scheme] 116/324: utils: hat-let: Fix inline procedure definitions. |
Date: |
Tue, 21 Sep 2021 13:22:36 +0200 |
This is an automated email from the git hooks/post-receive script.
maxime-devos pushed a commit to branch master
in repository gnunet-scheme.
commit 03527f83517dcbec20f084c02a04b2e27095071a
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Fri Jul 2 23:10:41 2021 +0200
utils: hat-let: Fix inline procedure definitions.
The syntax for procedure bindings needs to match
before the syntax for generic bindings.
* gnu/gnunet/utils/hat-let.scm (let^): Move the
code for inline procedure definitions a little
upwards.
---
gnu/gnunet/utils/hat-let.scm | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/gnu/gnunet/utils/hat-let.scm b/gnu/gnunet/utils/hat-let.scm
index 9382867..181ed5a 100644
--- a/gnu/gnunet/utils/hat-let.scm
+++ b/gnu/gnunet/utils/hat-let.scm
@@ -30,8 +30,10 @@
;; with <--.
;; * (2 1): Refer to '_' as a symbol, not as the _ from
;; (rnrs base)
+;; * (2 2): Make (! (procedure-name argument) code code* ...)
+;; usable.
-(library (gnu gnunet utils hat-let (2 1))
+(library (gnu gnunet utils hat-let (2 2))
(export let^)
;; Avoid letting users of (gnu gnunet utils hat-let)
;; having to import _ from (rnrs base).
@@ -50,15 +52,15 @@
(if x
(begin esc esc* ...)
(let^ (etc ...) code ...)))
- ;; Bind y to x
- ((: ((! x y) etc ...) code ...)
- (let ((x y))
- (let^ (etc ...) code ...)))
;; Define a procedure
((: ((! (x . args) body ...) etc ...) code ...)
(let ((x (lambda args body ...)))
(let^ (etc ...)
code ...)))
+ ;; Bind y to x
+ ((: ((! x y) etc ...) code ...)
+ (let ((x y))
+ (let^ (etc ...) code ...)))
;; Assert it is true!
((: ((!! x) etc ...) code ...)
(begin
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet-scheme] 141/324: mq: Return the envelope after enqueueing and add more tests., (continued)
- [gnunet-scheme] 141/324: mq: Return the envelope after enqueueing and add more tests., gnunet, 2021/09/21
- [gnunet-scheme] 147/324: Merge branch 'master' into proper-mq, gnunet, 2021/09/21
- [gnunet-scheme] 97/324: utils: bv-slice: Define a record printer., gnunet, 2021/09/21
- [gnunet-scheme] 118/324: netstruct: Fix field lookup and offset calculation., gnunet, 2021/09/21
- [gnunet-scheme] 140/324: mq: Export &overly-full-queue-warning and friends., gnunet, 2021/09/21
- [gnunet-scheme] 144/324: mq: Test message cancellation., gnunet, 2021/09/21
- [gnunet-scheme] 145/324: mq: envelope: Correct spelling in comments and docstrings., gnunet, 2021/09/21
- [gnunet-scheme] 87/324: mq: define message queue module, gnunet, 2021/09/21
- [gnunet-scheme] 96/324: doc: Fix typo in README.org., gnunet, 2021/09/21
- [gnunet-scheme] 102/324: tests: config-parser: Don't generate inexact numbers., gnunet, 2021/09/21
- [gnunet-scheme] 116/324: utils: hat-let: Fix inline procedure definitions.,
gnunet <=
- [gnunet-scheme] 117/324: mq: Define envelope data type, again., gnunet, 2021/09/21
- [gnunet-scheme] 126/324: netstruct: Verify there is a setter (not a reader) in set%!., gnunet, 2021/09/21
- [gnunet-scheme] 128/324: netstruct: Raise &unwritable, not an &unreadable, in set%!., gnunet, 2021/09/21
- [gnunet-scheme] 131/324: tests: mq: Work-around guile-fibers bug., gnunet, 2021/09/21
- [gnunet-scheme] 143/324: tests: Extract conservative-gc? in a library., gnunet, 2021/09/21
- [gnunet-scheme] 150/324: Merge branch 'master' into proper-mq, gnunet, 2021/09/21
- [gnunet-scheme] 148/324: utils: tokeniser: Split message streams into individual messages., gnunet, 2021/09/21
- [gnunet-scheme] 149/324: mq: Delete unused and obsolete message-io module., gnunet, 2021/09/21
- [gnunet-scheme] 155/324: enum: Fix compilation error on Guile 3.0.7., gnunet, 2021/09/21
- [gnunet-scheme] 160/324: enum: symbol->value: Return #f if the symbol doesn't exist., gnunet, 2021/09/21