intersection?



Raymond Toy <toy@rtp.ericsson.se> writes:

> After looking over the code, I think maxima's INTERSECTION is the same
> as Lisp's INTERSECTION so it probably shouldn't be defined at all.

Hmm... There must be some difference - on CMUCL, MAXIMA::INTERSECTION
breaks DEFPACKAGE. I discovered this as I converted
maxima-package.lisp to use DEFPACKAGE. First time loading the
DEFPACKAGE form works fine, second time (after loading the rest of
Maxima) it complains about the number of arguments to INTERSECTION.

> Besides, I don't think you're allowed to redefine functions in the
> COMMON-LISP package.

Exactly. I'd put it on the shadow list together with COMPLEMENT and
CONTINUE. It is good that CLISP seems to warn about redefining symbols
in the CL package - I'd be surprised if INTERSECTION and TYPE-ERROR
are the only ones.

	Regards, Ole