From ... Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsmi-us.news.garr.it!newsbo.news.garr.it!NewsITBone-GARR!newsfeed.cineca.it!newsserver.cilea.it!univ-lyon1.fr!nmaster.kpnqwest.net!nreader3.kpnqwest.net.POSTED!not-for-mail Newsgroups: comp.lang.lisp Subject: Re: Tail recursion elimination in methods References: Mail-Copies-To: never From: Erik Naggum Message-ID: <3214525157799353@naggum.net> Organization: Naggum Software, Oslo, Norway Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 12 Nov 2001 03:39:19 GMT X-Complaints-To: newsmaster@Norway.EU.net X-Trace: nreader3.kpnqwest.net 1005536359 193.71.66.49 (Mon, 12 Nov 2001 04:39:19 MET) NNTP-Posting-Date: Mon, 12 Nov 2001 04:39:19 MET Xref: archiver1.google.com comp.lang.lisp:19652 * Software Scavenger | The following behavior in Lispworks 4.1.20 doesn't make sense, because | Lispworks eliminates tail recursion in ordinary functions when compiled. If it allows advice to functions the same way it allows :around, :before, and :after methods, it is hard to do it for functions, too. Predicting what a programmer will do is hard. Disallowing certain things because of a high optimization level is not a good idea, because it would mean that dynamism and production quality would not be possible at the same time, and that is sometimes precisely what you want. | And why does it say the method is already compiled? Well, it does not say that. You asked for the symbol to be compiled, and the symbol's function value is the generic function, so it said that the generic function is already compiled. That is because you did not define your own generic function (with defgeneric); you let defmethod use one of its already defined and compiled generic functions for you in the absence of an existing generic function. /// -- Norway is now run by a priest from the fundamentalist Christian People's Party, the fifth largest party representing one eighth of the electorate. -- Carrying a Swiss Army pocket knife in Oslo, Norway, is a criminal offense.