Re: [fpc-pascal] FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-14 Thread reinierolislagers
Thanks, stootch, sorry it did not work. You might try with a newer version; we have found and hopefully fixed some problems with lazarus make... Thanks for the detailed problem report, ReinierOn 13-02-12 21:15 stootch wrote: W dniu 2012-02-10 15:24, Reinier Olislagers pisze: Testing on

[fpc-pascal] Re: TLinkedList

2012-02-14 Thread Carver413
doesn't generics more or less duplicate the class every time you use it with different type, and if so would this not cause alot of bloating ? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Re: TLinkedList

2012-02-14 Thread ik
On Tue, Feb 14, 2012 at 07:45, Carver413 carver...@gmail.com wrote: doesn't generics more or less duplicate the class every time you use it with different type, and if so would this not cause alot of bloating ? ‎That's one of the things that I'm afraid of actually.

Re: [fpc-pascal] Re: TLinkedList

2012-02-14 Thread Sven Barth
Am 14.02.2012 06:45, schrieb Carver413: doesn't generics more or less duplicate the class every time you use it with different type, and if so would this not cause alot of bloating ? Yes it does. So for embedded systems use with care ;) Regards, Sven

Re: [fpc-pascal] Re: TLinkedList

2012-02-14 Thread Juha Manninen
2012/2/14, Sven Barth pascaldra...@googlemail.com: Am 14.02.2012 06:45, schrieb Carver413: doesn't generics more or less duplicate the class every time you use it with different type, and if so would this not cause alot of bloating ? Yes it does. So for embedded systems use with care ;) Oh,

Re: [fpc-pascal] Re: TLinkedList

2012-02-14 Thread Sven Barth
On 14.02.2012 19:33, Juha Manninen wrote: 2012/2/14, Sven Barthpascaldra...@googlemail.com: Am 14.02.2012 06:45, schrieb Carver413: doesn't generics more or less duplicate the class every time you use it with different type, and if so would this not cause alot of bloating ? Yes it does. So

[fpc-pascal] Re: TLinkedList

2012-02-14 Thread Carver413
As long as one knows of the disadvantages of generics there is no problem in enjoying their advantages. the disadvantage will come in the useing. over time more and more units will contain these because they are easy. so you will end up with a lot of redundant code. doesn't matter if they

Re: [fpc-pascal] Re: TLinkedList

2012-02-14 Thread Marco van de Voort
In our previous episode, Sven Barth said: in a container, the same container could be used. Such logic unnecessarily complicates the compiler. Generics are already troublesome enough. Afaik it was the main reason to implement generic constraints in Delphi (like .NET)?

Re: [fpc-pascal] Re: TLinkedList

2012-02-14 Thread Sven Barth
On 14.02.2012 22:03, Marco van de Voort wrote: In our previous episode, Sven Barth said: in a container, the same container could be used. Such logic unnecessarily complicates the compiler. Generics are already troublesome enough. Afaik it was the main reason to implement generic

Re: [fpc-pascal] Re: TLinkedList

2012-02-14 Thread Marco van de Voort
In our previous episode, Sven Barth said: Afaik it was the main reason to implement generic constraints in Delphi (like .NET)? Constraints allow the compiler to infer further information on the given types to improve e.g. type checking when parsing the generic, Exactly. You e.g. know

Re: [fpc-pascal] FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-14 Thread stootch
W dniu 2012-02-14 10:41, reinierolislag...@gmail.com pisze: You might try with a newer version; we have found and hopefully fixed some problems with lazarus make... Um... Info: make FPC=/home/stootch/fpc/bin/fpc.sh --directory=/home/stootch/lazarus FPCDIR=/home/stootch/fpc/ UPXPROG=echo

Re: [fpc-pascal] Re: TLinkedList

2012-02-14 Thread Jorge Aldo G. de F. Junior
i once read a textbook about generics (C++ generics) showing how C++ code can end up being FASTER than C equivalent due to lack of type checks... it uses a quick sort routing as example. on C you end up having to check the type of storage to get a similar result, while on C++ you check this at