🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2227

More Re: Is the STL too authentic... ?

#2227
From: jgreen
Date: Tue, 17 Oct 1995 02:25
19 lines
1396 bytes
	While were at it it would be nice to have the compiler determine of
a function is tail recursive and create different code appropriately. It should
just reset the values in the stack instead allocating more space on the stack
if a function is returning the value of itself beeing called. There are a
few tricky things to do here, especialy with passing the parameters but I can
think of ways of handling this.

				JonG.
    
The opinions expressed in this message are those of the author only,
and do not necessarily reflect the opinions of American Express.

[ moderator's note: Some compilers routinely eliminate tail recursion.
  It gives astounding results on some benchmarks which attempt to
  measure function-call performance. -sdc ]

[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <9510170056.AA51459@cs90slave.csv-tgsc.amex-trs.com>
Path: arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamage

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamage
From: jgreen@amex-trs.com
Newsgroups: comp.std.c++
Subject: More Re: Is the STL too authentic... ?
Date: 17 Oct 1995 02:25:03 GMT
Organization: ?
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <9510170056.AA51459@cs90slave.csv-tgsc.amex-trs.com>
NNTP-Posting-Host: taumet.eng.sun.com
Content-Type: text
Content-Length: 561
Originator: clamage@taumet