unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* append! non-tail recursion
@ 2003-07-08  1:09 Kevin Ryde
  2004-04-15  0:22 ` Kevin Ryde
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Ryde @ 2003-07-08  1:09 UTC (permalink / raw)


I noticed append! is implemented with a non-tail recursion.  Since
it's at the C level it needs quite a long list to provoke a problem,
but I thought to redo it with a loop.

The current code uses scm_last_pair, which has the effect of detecting
circular lists in the input.  Is that an intended feature, or merely a
side effect?

Plain append doesn't check for circular, I guess probably neither or
both should do it.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-15  0:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-08  1:09 append! non-tail recursion Kevin Ryde
2004-04-15  0:22 ` Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).