[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Esoteric compiler question.



    Date: Thu, 9 Nov 89 13:23 EST
    From: Rusty@Cassiopeia.Mystech.Dialnet.Symbolics.COM (Rusty Johnson)

    Does someone know a way (hopefully easy) to determine during macro
    expansion, if the macro is being expanded by the compiler or by the
    interpreter?

    Thanks,
    Rusty Johnson

I think (boundp 'compiler:*function-list*) should work in every release
through 8.0, but may not work in a future release.

You probably really want to write an optimizer if you want a different
expansion at compile time than at run time.  There's some information in
the documentation about doing this.