[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: issue SHARP-COMMA-CONFUSION
- To: Jon L White <jonl@lucid.com>
- Subject: Re: issue SHARP-COMMA-CONFUSION
- From: sandra%defun@cs.utah.edu (Sandra J Loosemore)
- Date: Tue, 10 Jan 89 08:53:51 MST
- Cc: masinter.pa@Xerox.COM, cl-compiler@sail.stanford.edu
- In-reply-to: Jon L White <jonl@lucid.com>, Tue, 10 Jan 89 04:02:47 PST
I think this is the piece of code you were referring to:
;;;--------------------------------------------------------------------------
(in-package "USER")
;;; Clean the slate, in case this isn't "first time" processing
(eval-when (eval compile load)
(fmakunbound 'expose)
(fmakunbound 'exposure-normality)
(proclaim '(special markers))
)
;;; Use different marker depending on which situation is relevant.
(eval-when (eval)
(setq markers '((eval a) (eval b) (eval c)))
)
(eval-when (compile)
(setq markers '((compile a) (compile b) (compile c)))
)
(eval-when (load)
(setq markers '((load a) (load b) (load c)))
)
(eval-when (eval compile load)
(defun expose ()
`(#,(pop markers) #,(pop markers)))
(defmacro exposure-normality ()
(if (member (car (expose))
'((eval a) (compile a) (load a))
:test #'equal)
`'normal
`'abnormal))
)
(eval-when (eval compile load)
(defparameter foo (expose))
(defparameter bar (exposure-normality))
)
;;;--------------------------------------------------------------------------
-------