🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #856

Re: Linked Lists...

#856
From: Pertti Suomela
Date: Wed, 23 Dec 1992 09:42
27 lines
2093 bytes
In article <1gkia2INN31u@escargot.xx.rmit.OZ.AU> rcskb@minyos.xx.rmit.OZ.AU (Kendall Bennett) writes:
 > cclark@trentu.ca (J. Chris Clark) writes:
 > >In article <1992Dec11.080213.6552@ugle.unit.no>, mariusk@solan.unit.no (Marius Kjeldahl) writes...
 > >>You should look into the CLASSLIB objects. I think they've got the most
 > >>usual lists, stacks, heaps and more adt covered in CLASSLIB. OWL for instance
 > >>uses CLASSLIB.

 > >Specifically, it's called the "container class library".  I looked at it
 > >once, considered using it, then decided that the overhead (probable run-time
 > >and my learning/frustration time) wasn't worth it for a doublly-linked list
 > >and I wrote the procedures in about an hour.

 > Actually, a good implementation of linked lists as a C++ class (forget
 > the whole concept of a container class library and go back to the old
 > concept of an ADT), can be more efficient than a set of nice routines
 > in C. Of course programmer's in C tend to write linked list code
 > inline anyway, using pointer arithmetic, but a C++ class can really
 > help to take the load of using lists etc.

The implementation of lists in CLASSLIB is quite braindead. For
example, you cannot insert or delete items in the middle of the list.
I cannot imagine any use for such a list.
--
Pertti Suomela

Internet: ps@uta.fi
X.400:    G=Pertti S=Suomela O=uta ADMD=fumail C=fi
Technical Details
Message-ID: <PS.92Dec23114213@pellava.uta.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!uta!kielo.uta.fi!ps
References: <Bz22nn.7tp@world.std.com> <1992Dec11.080213.6552@ugle.unit.no> <11DEC199208185618@trentu.ca> <1gkia2INN31u@escargot.xx.rmit.OZ.AU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!uta!kielo.uta.fi!ps
From: ps@uta.fi (Pertti Suomela)
Newsgroups: alt.msdos.programmer,comp.os.ms-windows.programmer.tools,comp.os.msdos.programmer,comp.binaries.ibm.pc.d,comp.windows.ms.programmer
Subject: Re: Linked Lists...
Message-ID: <PS.92Dec23114213@pellava.uta.fi>
Date: 23 Dec 92 09:42:13 GMT
References: <Bz22nn.7tp@world.std.com> <1992Dec11.080213.6552@ugle.unit.no>
 <11DEC199208185618@trentu.ca> <1gkia2INN31u@escargot.xx.rmit.OZ.AU>
Sender: news@uta.fi
Organization: Tampere University, Finland
Lines: 27
Nntp-Posting-Host: pellava
In-reply-to: rcskb@minyos.xx.rmit.OZ.AU's message of 15 Dec 92 12:16:02 GMT