[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- To: (BUG LISP) at MIT-AI
- Subject:
- From: KLE@MIT-AI
- Date: Mon, 7 Nov 78 23:03:03 GMT
- Original-date: 07/11/78 19:03:03 EDT
(defun write macro (n) ;(write <file> <s-exp>)
`(progn ()
(setq outfiles (list (open ,(cadr n) 'out)) ^r t ^w t)
,(caddr n)
(close (car outfiles))
(setq ^r nil ^w nil)
t))
Which expands into:
(DEFUN WRITE MACRO (N)
(CONS 'PROGN
(CONS 'NIL
(CONS (CONS 'SETQ
(CONS 'OUTFILES
(CONS (CONS 'LIST
(CONS (CONS 'OPEN
(CONS (CADR N)
'('OUT)))
'NIL))
'(^R T ^W T))))
(CONS (CADDR N)
'((CLOSE (CAR OUTFILES)) (SETQ ^R NIL ^W NIL) T))))))
it seems that after you use this macro grindef refuses to work.
Why?