Another problem with the defmacro
From: Asuka (asukahot_at_hotmail.com)
Date: 02/23/05
- Next message: rif: "Re: MCL for OS X worth the price?"
- Previous message: Xah Lee: "Re: standard mode for arrow down"
- Next in thread: mauhuur_at_gmail.com: "Re: Another problem with the defmacro"
- Reply: mauhuur_at_gmail.com: "Re: Another problem with the defmacro"
- Reply: Kenny Tilton: "Re: Another problem with the defmacro"
- Reply: M Jared Finder: "Re: Another problem with the defmacro"
- Reply: Coby Beck: "Re: Another problem with the defmacro"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 23 Feb 2005 14:37:55 +0100
Hi, I've got another problem. The fact is that what I want to do with
defmacro's declarations is to be able to compute the next type of
declaration:
(my-macro (1 2 3 4) (1 2 3 4) ... (5 6 7 2))
For example, to compute each list that conforms the arg-list.
But I don't know how to define the macro to get the list of args without
being evaluated.
One example I've tried to is:
(defmacro my-macro (&rest args)
`(car ,args)
)
And the result for the call:
(my-macro (1 2) (1 4) (3 1 4))
is that (1 2) is not a function name.
What do I do?
Thanx
- Next message: rif: "Re: MCL for OS X worth the price?"
- Previous message: Xah Lee: "Re: standard mode for arrow down"
- Next in thread: mauhuur_at_gmail.com: "Re: Another problem with the defmacro"
- Reply: mauhuur_at_gmail.com: "Re: Another problem with the defmacro"
- Reply: Kenny Tilton: "Re: Another problem with the defmacro"
- Reply: M Jared Finder: "Re: Another problem with the defmacro"
- Reply: Coby Beck: "Re: Another problem with the defmacro"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|