For Programmers: Free Programming Magazines  


Home > Archive > Functional > July 2007 > Re: shootout: implementing an interpreter for a simple procedural language Mi









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: shootout: implementing an interpreter for a simple procedural language Mi
Larry Clapp

2007-07-27, 7:06 pm

On 2007-07-27, Joachim Durchholz <jo@durchholz.org> wrote:
> Dan Bensen schrieb:
>
> Hmm... that sounds definitely un-Lispish to me. Surely you can
> combine macros, or pass parameters that are evaluated by the macro
> (or when calling the macro) to control what the macro does?


You guys are talking past each other. Dan's talking about macros from
a strict technical sense and Joachim is talking not only about that,
but also about the code a macro generates.

(defmacro example (a b c d)
`(progn
,b
,c
,c
(eval (progn ,@d))))

This (generates code that) ignores A, evaluates B once, C twice, and D
at runtime.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com