: [fpc-pascal] linked list to criticize
Hello,
Finally did it!
Managed to write in Pascal a linked list type, with all common operations
(put, change, remove, find more).
If anyone is nice enough to have a look, comment, and criticize:
http://spir.wikidot.com/pascal-doubly-linked-list
(There's
I'm curious, why didn't you make it a class...wouldn't that have made it
nicer/easier to use and program?
+1
It should be a class, yes. Now you have loads of global functions.
The integer data type doesn't make much sense but your comment says it will be
changed to generics type. That sounds
Paul Nicholls het geskryf:
I'm curious, why didn't you make it a class...wouldn't that have made it
nicer/easier to use and program?
My thoughts too.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
I don't wish to sound negative here, but I think something like
doubly-linked lists is fundamental and doesn't need an implementation
specially made for the FPC community, unless it needs to be adapted to the
language implementation itself or the execution environment.
There must be dozens of
On Mon, 3 May 2010 16:02:32 +1000
Paul Nicholls paulfnicho...@gmail.com wrote:
Hi Denis,
nice :)
I'm curious, why didn't you make it a class...wouldn't that have made it
nicer/easier to use and program?
Yes, for sure. Not beeing able to use the OO syntax is really a pain! (Even
inside
On Sun, 2 May 2010 22:20:43 +0200
Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote:
Hello,
I think it would be good if you add a link to your package here:
http://wiki.lazarus.freepascal.org/Components_and_Code_examples
Thanks, I'll add it there if some of you test
Hello,
Finally did it!
Managed to write in Pascal a linked list type, with all common operations (put,
change, remove, find more).
If anyone is nice enough to have a look, comment, and criticize:
http://spir.wikidot.com/pascal-doubly-linked-list
(There's an extensive intro text, and a test
Hello,
I think it would be good if you add a link to your package here:
http://wiki.lazarus.freepascal.org/Components_and_Code_examples
--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
2010/5/2 spir ☣ denis.s...@gmail.com:
(There's an extensive intro text, and a test suite with output.)
Did you know FPC comes with a unit testing framework called fpcUnit?
fpc/src/packages/fcl-fpcunit/src
Alternatively you can also use DUnit2 which I ported to Free Pascal a
while back, and