From: David Vallner Date: 2007-03-29T07:30:25+09:00 Subject: Re: general question (different between methods and functions)? --------------enig3B09BD7C19650CA3A8F1FC56 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Alex Young wrote: > I think of them like this: >=20 > - A method is a message to which an object responds. > [snip] > By this definition, it is possible for an (object,message) pair to be > viewed as a function. Of course, the very existence of CLOS makes this definition a little vague. Since then, it would be the tuple of a "message" and all the objects (values really) it's "sent to" (which, in CLOS, it quite isn't, since IIRC, the multiple-dispatch mechanism doesn't have to use the most specific class of either argument if it wouldn't lead to a match), and things go all manners of pear-shaped, making a method really only a tuple of a message name and its arguments, where I can't really see the distinction between that and a function name and its arguments. (Based on your definition only.) David Vallner --------------enig3B09BD7C19650CA3A8F1FC56 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFGCux+y6MhrS8astoRAsKsAJ0WMYfrl5cXpKZoEnQbxbcXOsr2xgCffTyf 88rj5qJ5+JQOLXdX6/VZZZc= =LjG5 -----END PGP SIGNATURE----- --------------enig3B09BD7C19650CA3A8F1FC56--