Re: [fpc-pascal] linked list to criticize

2010-05-03 Thread spir ☣
On Sun, 2 May 2010 22:20:43 +0200 Felipe Monteiro de Carvalho 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 it. (Self-testing one's own to

Re: [fpc-pascal] linked list to criticize

2010-05-03 Thread spir ☣
On Mon, 3 May 2010 16:02:32 +1000 "Paul Nicholls" 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 the LinkedList uni

Re: [fpc-pascal] linked list to criticize

2010-05-03 Thread Frank Church
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 impl

Re: [fpc-pascal] linked list to criticize

2010-05-03 Thread Graeme Geldenhuys
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/ _

Re: [fpc-pascal] linked list to criticize + generics

2010-05-03 Thread Juha Manninen
> 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

Re: [fpc-pascal] linked list to criticize

2010-05-02 Thread Paul Nicholls
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? cheers, Paul - Original Message - From: "spir ☣" To: "FreePascal" Sent: Monday, May 03, 2010 4:25 AM Subject: [fpc-pasca

Re: [fpc-pascal] linked list to criticize

2010-05-02 Thread Graeme Geldenhuys
2010/5/2 spir ☣ : > (There's an extensive intro text, and a test suite with output.) Did you know FPC comes with a unit testing framework called fpcUnit? /src/packages/fcl-fpcunit/src Alternatively you can also use DUnit2 which I ported to Free Pascal a while back, and has a bit more features a

Re: [fpc-pascal] linked list to criticize

2010-05-02 Thread Felipe Monteiro de Carvalho
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 http://lists.freepascal.

[fpc-pascal] linked list to criticize

2010-05-02 Thread spir ☣
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 suit