From: Davide
Subject: Macros......
Date: 
Message-ID: <7mksb7$ml5$1@nslave1.tin.it>
I'm a new to Lisp and I was trying to do the following:
write the system macro cond using only if.
I've come up with a couple of solutions but none of them seem to work.
Can anyone help me ?????

From: Barry Margolin
Subject: Re: Macros......
Date: 
Message-ID: <Jfxj3.1390$KM3.374967@burlma1-snr2>
In article <············@nslave1.tin.it>, Davide <·····@tin.it> wrote:
>I'm a new to Lisp and I was trying to do the following:
>write the system macro cond using only if.
>I've come up with a couple of solutions but none of them seem to work.
>Can anyone help me ?????

Since you didn't post your code, it's not possible for us to help you.  All
we could do is write the solution for you, which wouldn't be as helpful as
explaining what's wrong with your version.

-- 
Barry Margolin, ······@bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
From: Stig Hemmer
Subject: Re: Macros......
Date: 
Message-ID: <ekvr9m15vyf.fsf@epoksy.pvv.ntnu.no>
"Davide" <·····@tin.it> writes:
> I'm a new to Lisp and I was trying to do the following:
> write the system macro cond using only if.

Write a macro that transforms a COND into _one_ IF, where the "else"
part is another COND.  (Which will then be transformed again and so on)

Remember to handle the finishing case correctly.  I.e. what should you
do with a COND with _no_ clauses?

> I've come up with a couple of solutions but none of them seem to work.
> Can anyone help me ?????

If you still can't get to work, post your code and we can talk about it.

Stig Hemmer,
Jack of a Few Trades.