[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Chicken C interface
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] Chicken C interface |
Date: |
Wed, 5 Jun 2013 22:38:38 +0200 |
User-agent: |
Mutt/1.4.2.3i |
On Wed, Jun 05, 2013 at 08:19:15PM +0200, Thomas Chust wrote:
> On 2013-06-05 20:11, Peter Bex wrote:
> > On Wed, Jun 05, 2013 at 07:57:49PM +0200, Thomas Chust wrote:
> >> but it's trivial to detect cyclic lists during the traversal using
> >> either a set of seen elements or just two iteration pointers travelling
> >> at different speeds.
> >
> > In C that's rather painful. Note that the OP was asking specifically
> > for a C_listp macro.
> > [...]
>
> Hello,
>
> well, I think that two iteration pointers are trivial even in C, but
> that may be a matter of taste :-)
Of course you're right. I was thinking of the set of seen elements.
I need sleep.
Cheers,
Peter
--
http://www.more-magic.net
Re: [Chicken-users] Chicken C interface, Felix, 2013/06/05
Re: [Chicken-users] Chicken C interface, Thomas Chust, 2013/06/06
Re: [Chicken-users] Chicken C interface, Kristian Lein-Mathisen, 2013/06/06
Re: [Chicken-users] Chicken C interface, Thomas Chust, 2013/06/06
Re: [Chicken-users] Chicken C interface, Kristian Lein-Mathisen, 2013/06/06
Re: [Chicken-users] Chicken C interface, Thomas Chust, 2013/06/06
Re: [Chicken-users] Chicken C interface, Dan Leslie, 2013/06/06
Re: [Chicken-users] Chicken C interface, Felix, 2013/06/06