[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: JONL at MIT-MC, (BUG LISP) at MIT-MC
- From: HIC at MIT-MC (Howard I. Cannon)
- Date: Wed, 14 Jun 78 11:42:00 GMT
- Cc: (BUG LISPM) at MIT-MC, GSB at MIT-MC
- Original-date: 14 JUN 1978 0742-EDT
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.