[gambit-list] define-syntax in Gambit-C mode

Pavel Dudrenov dudrenov at gmail.com
Wed Mar 4 23:46:00 EST 2009


Really? That's odd. On mine it works fine. Here is an example with
define-syntax straight from the gambit docs.

pavel at dudrenov:~$ gsi
Gambit v4.4.1

> (load "~~/lib/syntax-case")
"/usr/local/Gambit-C/lib/syntax-case.scm"
> (define-syntax unless
  (syntax-rules ()
    ((unless test body ...)
     (if test #f (begin body ...)))))
> (let ((test 111)) (unless (= 1 2) (list test test)))
(111 111)
>




On Wed, Mar 4, 2009 at 8:38 PM, Nguyen Thai Ngoc Duy <pclouds at gmail.com> wrote:
> On 3/5/09, Pavel Dudrenov <dudrenov at gmail.com> wrote:
>> hmm what gambit specific features are broken with -:s?
>
> open-process
>
>>  Also can't you:
>>  (load "~~lib/syntax-case")
>>  for whatever program needs syntax-case?
>
> Won't work. I get ill-formed expression on define-syntax. Forgot to
> mention I'm using Gambit-C 4.4.1.
> --
> Duy
>



More information about the Gambit-list mailing list