Re: Naming curiosity
- From: Chris Dollin <chris.dollin@xxxxxx>
- Date: Fri, 28 Nov 2008 10:43:15 +0000
Lorenzo Villari wrote:
"Chris Dollin" <chris.dollin@xxxxxx> ha scritto nel messaggio
news:ggmfh8$oqm$1@xxxxxxxxxxxxxxxxxxxxxx
In fact is not me, it's an oversemplification of code I've found and
Why the /heck/ would you use `void*` not `struct sList*` for `head` and
`prev`? The structure is just as recursive (or not) even if you lie about
the types of the pointers.
perplexed about.
You said "If I define a linked list this way", not "I found this
code I'm perplexed about".
I normally use the canonical way of defining a linked list.
Good.
Sometimes the head is a data item and sometimes the head is a list
head? IMAO, this is just asking for trouble. At the very least you
could make this type a union, but it's not clear to me why you're
making life so complicated for yourself.
Same as above
Me, too.
It looks like a doubly linked list, not a plain linked list.
Yeah I know the distinction between the two. I meant the term in a general
way. There's a lot of data structure and since I don't know everything, I
thought of the possibility of another one unknown to me...
It's a doubly linked list with obfuscation. (Maybe, if you show us
the unoversimplified code, we'd be able to disperplex you.)
--
"Possibly you're not recalling some of his previous plans." Zoe, /Firefly/
Hewlett-Packard Limited Cain Road, Bracknell, registered no:
registered office: Berks RG12 1HN 690597 England
.
- References:
- Naming curiosity
- From: Lorenzo Villari
- Re: Naming curiosity
- From: Chris Dollin
- Re: Naming curiosity
- From: Lorenzo Villari
- Naming curiosity
- Prev by Date: Re: Naming curiosity
- Next by Date: Re: Naming curiosity
- Previous by thread: Re: Naming curiosity
- Next by thread: Re: Naming curiosity
- Index(es):
Relevant Pages
|