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

[no subject]



    Date: 28 July 1980 19:13-EDT
    From: George J. Carrette <GJC at MIT-MC>
    To: BUG-LISP at MIT-MC

    (DEFUN (FOO BAR) (X) X) in compiled code causes FOO to get a BAR
    property of |FOO BAR| and |FOO BAR| to get a SUBR property.
    How can I get FOO to have a BAR property which is the SUBR property
    in question without the generation of the symbol |FOO BAR|
    which is useless for my purpose.

Look at the documentation for DEFUN in LISP NEWS!

Basically, what you want is the 3-list form:  (DEFUN (FOO BAR BAZ) (X) X)
which will give FOO a BAR property of (LABMDA (X) X) when loaded into the
interpreter, and a BAZ property with the SUBR pointer when compiled.