Re: Avoiding eval
From: Kenny Tilton (ktilton_at_nyc.rr.com)
Date: 02/23/04
- Next message: Anton van Straaten: "Re: Scheme macros"
- Previous message: Brian Mastenbrook: "Re: Doing mini-languages in CL"
- In reply to: An Metet: "RE: Avoiding eval"
- Next in thread: Thomas A. Russ: "Re: Avoiding eval"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 23 Feb 2004 04:33:55 GMT
An Metet wrote:
> NOTE: This message was sent thru a mail2news gateway.
> No effort was made to verify the identity of the sender.
> --------------------------------------------------------
>
>
>>From: tar@sevak.isi.edu (Thomas A. Russ)
>
>
>>>I had tried to use APPLY on my macro but it failed
>>>
>>>(dolist (args arg-list "done") (apply #'item-classm args));fails
>>>But entering the arguments directly works.
>>
>>How did it fail?
>
>
> The question suggests that you think it should work,
> I was quite dissapointed when it didn't.
That might have been a rhetorical question, thinking it was failing this
way (from acl62):
CELLO(1): (defmacro does-not-apply (x)
`(print ,x))
DOES-NOT-APPLY
CLO(2): (apply 'does-not-apply (list 42))
Error: Attempt to call DOES-NOT-APPLY which is defined as a macro.
[condition type: PROGRAM-ERROR]
macros cannot be APPLY'ed or funcalled.
kenny
-- http://tilton-technology.com Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film Your Project Here! http://alu.cliki.net/Industry%20Application
- Next message: Anton van Straaten: "Re: Scheme macros"
- Previous message: Brian Mastenbrook: "Re: Doing mini-languages in CL"
- In reply to: An Metet: "RE: Avoiding eval"
- Next in thread: Thomas A. Russ: "Re: Avoiding eval"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|