From: Barry Margolin
Subject: Re: defun vs defmethod
Date: 
Message-ID: <5q13sr$d9f@tools.bbnplanet.com>
In article <·············@franz.com>,
Alex Athanasopoulos  <··@Franz.com> wrote:
>Is there a reason why defun and defmethod cannot be handled
>by the same macro?
>
>e.g.
>
>(defun x (a))
>
>(defun x ((a integer))

I remember this being suggested in X3J13, but I don't think there was
enough interest in it to bother.

One reason for the distinction is to permit error checking: DEFMETHOD can
warn if the name is already defined as a non-generic function (although in
an early version of the CLOS design, it was proposed that this would cause
the old non-generic function to become the default method for the generic
function).  And DEFUN can warn if you have too many parentheses around a
parameter name.

-- 
Barry Margolin, ······@bbnplanet.com
BBN Corporation, Cambridge, MA
Support the anti-spam movement; see <http://www.cauce.org/>