[closer-devel] New warning "No generic function F present when encountering macroexpansion of defmethod."
Leslie P. Polzer
sky at viridian-project.de
Wed Nov 4 10:33:03 UTC 2009
This newly introduced warning seems to be emitted every time
when there's a defmethod that is not preceded by a defgeneric.
But this is perfectly valid code and c2mop must[1] assume
that the implicit gf is of class standard-generic-function
without emitting a warning (which causes ASDF to stop everytime
it is encountered).
How about a compiler note instead?
Leslie
[1] http://www.lispworks.com/documentation/HyperSpec/Body/m_defmet.htm
"If (fboundp function-name) is nil, a generic function is created
with default values for the argument precedence order (each argument
is more specific than the arguments to its right in the argument
list), for the generic function class (the class standard-generic-function),
for the method class (the class standard-method), and for the method
combination type (the standard method combination type)."
--
http://www.linkedin.com/in/polzer
More information about the closer-devel
mailing list