[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reading the C source of Emacs
From: |
David Kastrup |
Subject: |
Re: reading the C source of Emacs |
Date: |
17 Jan 2003 12:41:46 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Oliver Scholz <alkibiades@gmx.de> writes:
> Thank you all for you advice. You helped to set me on the track. But
> it is indeed a rather difficult read for me. My head dizzles is still
> a bit dizzling.
>
> Below are my very first steps in C: a version of `find-if' as a
> starter. I'd appreciate any comment. (Did I miss something important,
> for example?)
>
> One thing that I noticed is that my `find-if' causes an infinite loop,
> when applied to a recursive (?) list, à la:
There are several tricks for dealing with recursive data structures.
One is to have two traversals active at the same time, where one
traversal progresses just at every second step. If they should ever
catch up, you have encountered a loop in a data structure.
I doubt this would be worth the trouble: just make sure that C-g will
be able to abort your function should it get stuck.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Re: reading the C source of Emacs, (continued)
Re: reading the C source of Emacs, Janusz S. Bień, 2003/01/13
Message not available
Re: reading the C source of Emacs, Stefan Monnier <address@hidden>, 2003/01/13