Jim Newton
8/28/2015 8:38:00 AM
That's a nice recipe! Thanks.
In the mean time I just used << and <<= or something similar, which works fine.
To paraphrase the words of Pascal Costanza "It's not scheme, you can use a different damn symbol."
Sorry I don't
> Quick and dirty way:
>
> (defpackage :foo
> (:use :cl)
> (:shadow < <=))
>
> (in-package :foo)
>
> ;; install global functions foo:< and foo:<= which are the
> ;; same as the CL ones, so that we have < and <= in our package.
> (setf (symbol-function '<) #'cl:<)
> (setf (symbol-function '<=) #'cl:<=)
>
> Now we can flet away. The expansions of standard CL macros use cl:< and cl:<=,
> whereas we are locally binding foo:< and foo:<=.