guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with macro


From: jblazi
Subject: Help with macro
Date: Fri, 22 Nov 2002 15:47:58 +0100

How can I write the following macro in Guile:

(define-syntax defpoint
  (syntax-rules
    ()
    ( (defpoint p) (display "ERROR"))
    ( (defpoint p p-tupel) (define p (apply point 'p-tupel)))
    ( (defpoint p p-tupel pp ...) (begin (defpoint p p-tupel) (defpoint pp 
...)))))


Another question: Is there a "scm_c_eval_file"?

TIA,
-- 
Janos Blazi





reply via email to

[Prev in Thread] Current Thread [Next in Thread]