Re: [Chicken-users] misc questions about macros

2013-03-04 Thread Hugo Arregui
Thanks Christian! ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] misc questions about macros

2013-03-04 Thread Christian Kellermann
* Hugo Arregui [130304 15:44]: > But I'm trying to understand whats happening in the first example. > > My questions are: > - I'm guessing the proc isn't available in expansion time. I'm right? > - How can make this work? Use define-for-syntax instead of define HTH, Christian -- In the w

[Chicken-users] misc questions about macros

2013-03-04 Thread Hugo Arregui
Hi guys, I'm pretty new to macros, so I want to ask a couple of questions to sort the things in my brain :-). 1) I think this is an issue regarding expansion time / runtime: (define (aproc a) (* 2 a)) (define-syntax amacro (er-macro-transformer (lambda (x r c) (aproc 1 (print