On Friday, December 17, 2004, at 9:03:00 AM, Anthony Williams wrote:

>> I took the head /not/ to be another item that understands ->next,
>> and I didn't think I should change that. 

> Yes. Both the original code, and yours had a special case for the head
> element, because it wasn't a list node. 

> My point is that *head is just a pointer to a node, the same as record->next,
> so if we update this pointer directly, there is no difference, and we don't
> have a special case.

Yes, it was a very neat trick. My brain can't unthread the *'s and
&'s well enough any more. :)

Ron Jeffries
www.XProgramming.com
Curiosity is more powerful than skepticism.




To Post a message, send it to:   [EMAIL PROTECTED]

To Unsubscribe, send a blank message to: [EMAIL PROTECTED]

ad-free courtesy of objectmentor.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/extremeprogramming/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to