chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] hygienic macro and entry points


From: Daishi Kato
Subject: [Chicken-users] hygienic macro and entry points
Date: Wed, 27 Apr 2005 16:44:49 +0900
User-agent: Wanderlust/2.11.30 (Wonderwall) Emacs/21.4 Mule/5.0 (SAKAKI)

Hi,

Any workaround for this?
Maybe, I could use define-macro instead of define-syntax, though.

Daishi

-------------------------
% chicken -version
   ________    _      __            
  / ____/ /_  (_)____/ /_____  ____ 
 / /   / __ \/ / ___/ //_/ _ \/ __ \
/ /___/ / / / / /__/ ,< /  __/ / / /
\____/_/ /_/_/\___/_/|_|\___/_/ /_/                                             
                             
                                    
Version 1, Build 63 - linux-unix-gnu-x86
(c)2000-2004 Felix L. Winkelmann
% cat bar.scm     
(include "chicken-entry-points")

(define-embedded (foo (int x) (c-string y)) int
  (print x ": " y) 
  x)

(define-embedded (square (double x)) unsigned-int
  (* x x))
% chicken -syntax bar.scm 
compiling `bar.scm' ...
Error: invalid context for definition: (define 
##sys#embedded-entry-point-counter 1)




reply via email to

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