Re: Avoiding eval

From: Kenny Tilton (ktilton_at_nyc.rr.com)
Date: 02/23/04


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


Relevant Pages

  • Re: enumerate sheet
    ... The macro listed all of the formulas used in a worksheet ... > without advanced explicit consent of the sender. ... > contain viruses and/or worms. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Get address from body of message macro ?
    ... header has no information on the original sender. ... So I want a macro which ... >> first email address in that mail and then copy it to clipboard. ...
    (microsoft.public.outlook.program_vba)
  • Re: Macro Not found.
    ... Verify that all rferences are properly set in VBE, Tools, References. ... I am getting following error while trying to access use MSP. ... We have never seen error like this ... The macro "Preferences" cannot be found. ...
    (microsoft.public.project)
  • Re: Macro for using "Add Sender to Blocked Senders List" on multiple email messages simul
    ... what a macro could do, because there is no way for adding multiple ... ' Make the temporary folder the current one: ... each spam ... > message and hitting the "Add Sender to Blocked Senders List" button I ...
    (microsoft.public.outlook.program_vba)
  • Re: copy value of one field to another field in same table
    ... little VBA code, instead of a macro. ... Sender control's AfterUpdate event procedure, ... control the Receiver control doesn't update, ...
    (microsoft.public.access.gettingstarted)