On Fri, Mar 13, 2020 at 06:46:41PM +0000, George Spelvin wrote: > On Fri, Mar 13, 2020 at 11:19:17AM -0700, Paul E. McKenney wrote: > > Another approach would be to terminate with a NULL pointer, or with the > > end of the array, as the case may be. > > That's the basic idea, but you want to be able to append a pointer > in O(1) time, and a simple null-termination requires a linear search. Fair point! > It's obfuscation for negligible gain, however, so I'm sorry I > bothered mentioning it. I am with you on keeping it simple, especially initially, all evidence to the contrary notwithstanding. Thanx, Paul