From ... From: Erik Naggum Subject: Re: return-from / defmacro question Date: 1999/04/17 Message-ID: <3133348161977201@naggum.no>#1/1 X-Deja-AN: 467634530 References: <7f53ft$vtv@fstgal00.tu-graz.ac.at> <3133245123205645@naggum.no> <3133295791676654@naggum.no> mail-copies-to: never Organization: Naggum Software; +47 8800 8879; http://www.naggum.no Newsgroups: comp.lang.lisp * Kent M Pitman | For example: | | (defmacro bad-let1 ((var init) &body forms) ;<--BAD | `(let ((,var ',(eval init))) | ,@forms)) | | (defmacro good-let1 ((var init) &body forms) ;<--GOOD | `(let ((,var ,init)) | ,@forms)) | | Of course, this means the init will get executed every time the form | is evaluated instead of one, ... if this is important, LOAD-TIME-VALUE would take care of that. (hm, another problematic issue LOAD-TIME-VALUE solves elegantly. it really is quite the neat new special operator. :) #:Erik -- environmentalists are much too concerned with planet earth. their geocentric attitude prevents them from seeing the greater picture -- lots of planets are much worse off than earth is.