Jocelyn Fréchot
4/11/2016 4:30:00 PM
On 11/04/2016 16:38, Jim Newton wrote:
> (defpackage :dispatch
> (:export)
> (:use :cl :closer-mop)
> (:shadow "STANDARD-GENERIC-FUNCTION"
> "DEFMETHOD"
> "DEFGENERIC"))
>
> (in-package :dispatch)
>
> I would like this to mean that when I use standard-generic-function, defmethod, and defgeneric
> in the remainder of the file, I'd like it to refer to closer-mop::standard-generic-function etc,
> rather than to cl::standard-generic-function etc.
You need :SHADOWING-IMPORT-FROM instead of :SHADOW.
--
Jocelyn Fréchot