[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
append! non-tail recursion
From: |
Kevin Ryde |
Subject: |
append! non-tail recursion |
Date: |
Tue, 08 Jul 2003 11:09:16 +1000 |
User-agent: |
Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- append! non-tail recursion,
Kevin Ryde <=