Re: Scratching my head around define-macro and variable evaluation

2018-03-28 Thread Stefano Troncaro
Hi David, Thank you for your reply. Yes, I undestood that about macros. I'm trying to dynamically generate the variable definitions inside a let block from an alist, but the only way I manage to do that is if I type the alist manually. I want to achieve that with an alist stored in a variable.

Re: Scratching my head around define-macro and variable evaluation

2018-03-28 Thread David Kastrup
Stefano Troncaro writes: > Hi everyone! > > I have a question about the following example: > >> \version "2.19.80" >> #(define-macro (why-the-difference obj) >>(display (format "~a , " obj)) >>`(display (format "~a\n" ,obj))) >> >> #(why-the-difference (list 1

Scratching my head around define-macro and variable evaluation

2018-03-28 Thread Stefano Troncaro
Hi everyone! I have a question about the following example: > \version "2.19.80" > #(define-macro (why-the-difference obj) >(display (format "~a , " obj)) >`(display (format "~a\n" ,obj))) > > #(why-the-difference (list 1 2 3))% => (list 1 2 3) , (1 2 3) > #(define var (list 1 2 3)) > >