From: Nicolas N. <ne...@ma...> - 2007-12-24 09:00:25
|
Rudi Schlatte <ru...@co...> writes: > On 23.12.2007, at 05:20, Nicolas Neuss wrote: > >> Hello, >> >> I sometimes like to use DEFMETHOD as replacement for DEFUN + type >> declarations (i.e., even if there is no broader use of that function in >> which case a DEFGENERIC would make sense). In these cases, the style >> warning "implicitly creating new generic function" is a nuisance. Is it >> possible to switch off this warning selectively? > > In addition to all the points in Bill's reply, there's also > > (defgeneric foo (x) (:method ((x fixnum)) x)) Yes, I know, but this is still too clumsy to write for my taste. (BTW, the use of a type specifier like FIXNUM -which is not guaranteed to be a class- is non-standard.) Merry christmas, Nicolas > Since that form defines the generic function and a method, there are no > warnings. > > Rudi > > -- PD Dr. Nicolas Neuss University Karlsruhe Tel: 0049-721-608-7634 Email: ne...@ma... WWW: <http://www.mathematik.uni-karlsruhe.de/~neuss> |