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

[no subject]



    Date: 13 JUN 1978 1501-EDT
    From: JONL at MIT-MC (Jon L White)
    To: (BUG LISP) at MIT-MC
    CC: (BUG LISPM) at MIT-MC, GSB at MIT-MC

    So let us define PUSH and POP macros to produce something like
    (PUSH X L)   ==>  (SETQ L (CONS X L))
    (POP L)      ==>  (PROG2 () (CAR L) (SETQ L (CDR L)))
    This way, the value left by the "POP" will be the thing  popped off.
---------
This is the way they are inplImented [RLB take note] in the interpreter except
that (POP L X) pops L into X and returns the new value of X.