[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] csi works, but not csc
From: |
Mark Carter |
Subject: |
Re: [Chicken-users] csi works, but not csc |
Date: |
Fri, 10 Aug 2018 23:21:28 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 10/08/18 23:08, David Ireland wrote:
Can you show us the code you wrote?
I'm thinking the problem has something to do with low-level-macros.
I was really just looking for 'define-syntax-rule'. I managed to write
my own version:
(define-syntax define-syntax-rule
(syntax-rules ()
[(define-syntax-rule (id arg ...) body)
(define-syntax id
(syntax-rules ()
[(id arg ...) body]))]))
which, to my surprise, actually works. Bear in mind that I'm a n00b to
Scheme.
So, by jettisoning the module low-level-macros and writing my own
define-syntax-rule, my program manages to compile and run as expected.
So, problem solved. Hmmm. It's a pity chicken wan't a tad more helpful
with its error messages.