[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #63568] Simple syntax-rules macro fails.
From: |
Arthur A. Gleckler |
Subject: |
[bug #63568] Simple syntax-rules macro fails. |
Date: |
Sat, 24 Dec 2022 13:34:53 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?63568>
Summary: Simple syntax-rules macro fails.
Project: MIT/GNU Scheme
Submitter: aag
Submitted: Sat 24 Dec 2022 10:34:51 AM PST
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Keywords:
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sat 24 Dec 2022 10:34:51 AM PST By: Arthur A. Gleckler <aag>
(define-syntax define-foo
(syntax-rules ()
((define-foo ((variable value ...)))
(begin
(add-foo! '(variable value))
...))))
;Mismatched segment depth in template: (variable)
;To continue, call RESTART with an option number:
; (RESTART 1) => Return to read-eval-print level 1.
2 error>
I'm not sure what "segment depth" means, but I'm guessing that the problem is
that value is subject to an ellipsis, but variable is not. But I didn't think
that it was a requirement that they be the same in that regard.
Chibi, Chicken, and Gauche Scheme all accept that definition.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63568>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #63568] Simple syntax-rules macro fails.,
Arthur A. Gleckler <=