[Ecls-list] Common-Lisp question

Julian Stecklina der_julian at web.de
Wed May 3 02:15:07 UTC 2006


"Goffioul Michael" <goffioul at imec.be> writes:

> Hi,
>
> I have a common-lisp question, maybe someone here has an answer.
> I'm trying to implement a macro character ($), but I'd like different
> expansion when the associated form is at the beginning of a cons or not.
> So, ($f1 a b) would get me one expansion, and (func $f1 a) would get me
> a different expansion. Is it possible to detect such cases in the 
> macro reader function?

With ANSI CL this is not possible. Of course you could enclose
occurences of $ within [ ] or something, much like ` and , work.

What is your reader macro expanding to?

Regards,
-- 
Julian Stecklina

"I object to doing things that computers can do." - Olin Shivers




More information about the ecl-devel mailing list