[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- To: BUG-LISP at MIT-MC
- From: Earl A. Killian <EAK at MIT-MC>
- Date: Mon, 10 Sep 79 21:45:00 GMT
- Original-date: 10 September 1979 17:45-EDT
I was looking through some code in NILCOM and was annoyed to see
things like (PRINC '|message|) instead of (PRINC "message"). Why
don't you define a macro like the following one:
(setsyntax '/" 'macro #'(lambda ()
(do ((string () (cons character string))
(character (tyi) (tyi)))
((= character 34.) `(quote ,(maknam (nreverse string))))
(cond ((= character 47.) (setq character (tyi)))) )))
or maybe
(setsyntax '/" 'macro #'(lambda ()
(do ((string () (cons character string))
(character (tyi) (tyi)))
((= character 34.)
(setq string (maknam (nreverse string)))
(set string string))
(cond ((= character 47.) (setq character (tyi)))) )))
Then in NIL (and the LISPM) you'd get strings when you wanted strings, and
only in MACLISP would you get atoms when you meant strings.