Re: [fpc-devel] Problems with makefiles, fpcmake, Package.fpc and fppkg

2010-09-13 Thread Michael Van Canneyt
On Sun, 12 Sep 2010, Joost van der Sluis wrote: Hi all, Seems like that after all these years there are still bugs in fpc's makefiles... When you install a package, not the Package.fpc which is generated for the whole package, but the Package.fpc generated for the last sub-package is

Re: [fpc-devel] Packages, Generics

2010-09-13 Thread Florian Klaempfl
I don't know whether it is still the case but there was a time the 'is' operator relied on RTTI. So as soon as you have two different RTTI entries for, e.g., TMyListinteger (which could happen if you compile with packages) the operator needs some 'repair'. This is why FPC has specialize

Re: [fpc-devel] Packages, Generics

2010-09-13 Thread Willibald Krenn
This is why FPC has specialize (to emphasis this): only class instances having the same specialized generic type are considered being equal: type TList1 = specialize TListLongint; TList2 = specialize TListLongint; var l1a,l1b : TList1; l2 : TList2; Only l1a and l1b are

Re: [fpc-devel] Packages, Generics

2010-09-13 Thread Florian Klaempfl
Am 13.09.2010 11:44, schrieb Willibald Krenn: This is why FPC has specialize (to emphasis this): only class instances having the same specialized generic type are considered being equal: type TList1 = specialize TListLongint; TList2 = specialize TListLongint; var l1a,l1b : TList1; l2 :

[fpc-devel] Comparison Delphi7/FPC2.4.0 compiled MSEide exe's

2010-09-13 Thread Martin Schreiber
Hi, Some numbers about the MSEide exes compiled as testcase in http://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg19068.html System: win2000, AMD Athlon XP 3000+, 1GB RAM Delphi 7 FPC Exe size: 3131392 3689304 Code:

Re: [fpc-devel] Packages, Generics

2010-09-13 Thread Willibald Krenn
OTOH 'specialize' is an additional (unfamiliar) keyword and has semantics totally unknown to the world. So why not take what's already in the language? As I said, to emphasis that a new type is created, generic specialization is something really new to the language. The meaning of type

Re: [fpc-devel] Comparison Delphi7/FPC2.4.0 compiled MSEide exe's

2010-09-13 Thread Martin Schreiber
On Monday, 13. September 2010 12.57:14 Adem wrote: Martin, Could I have a copy of this exact setup --unless it is too big to send. What do you need? The source is here: http://developer.berlios.de/svn/?group_id=11520 The compiler commands are here:

Re: [fpc-devel] Packages, Generics

2010-09-13 Thread Florian Klaempfl
Am 13.09.2010 12:31, schrieb Willibald Krenn: OTOH 'specialize' is an additional (unfamiliar) keyword and has semantics totally unknown to the world. So why not take what's already in the language? As I said, to emphasis that a new type is created, generic specialization is something

Re: [fpc-devel] Comparison Delphi7/FPC2.4.0 compiled MSEide exe's

2010-09-13 Thread Florian Klaempfl
Am 13.09.2010 11:15, schrieb Martin Schreiber: Delphi 7 FPC Exe size: 3131392 3689304 Code: 2128524 2138240 Data: 752085 1541256 Do you use a lot of resource strings?

Re: [fpc-devel] Comparison Delphi7/FPC2.4.0 compiled MSEide exe's

2010-09-13 Thread Martin Schreiber
On Monday, 13. September 2010 13.24:18 Florian Klaempfl wrote: Am 13.09.2010 11:15, schrieb Martin Schreiber: Delphi 7 FPC Exe size: 3131392 3689304 Code: 2128524 2138240 Data: 752085

Re: [fpc-devel] Packages, Generics

2010-09-13 Thread Sven Barth
Am 13.09.2010 11:44, schrieb Willibald Krenn: But enough about generics, back to packages: I'll start doing an implementation for the non-generic part first. Let's see how this goes. Since I need to read into fpc source (and do this in my spare time), don't expect any spectacular results

Re: [fpc-devel] Comparison Delphi7/FPC2.4.0 compiled MSEide exe's

2010-09-13 Thread Graeme Geldenhuys
Op 2010-09-13 13:47, Martin Schreiber het geskryf: I can not use resource strings because FPC resource strings are not unicode capable AFAIK. Probably related to your choice of UCS-2 - I don't really know the specific issues you have, so it is hard to tell. I can say that I have been using

Re: [fpc-devel] Comparison Delphi7/FPC2.4.0 compiled MSEide exe's

2010-09-13 Thread Martin Schreiber
On Monday, 13. September 2010 14.12:38 Graeme Geldenhuys wrote: Op 2010-09-13 13:47, Martin Schreiber het geskryf: I can not use resource strings because FPC resource strings are not unicode capable AFAIK. Probably related to your choice of UCS-2 - I don't really know the specific issues

Re: [fpc-devel] Comparison Delphi7/FPC2.4.0 compiled MSEide exe's

2010-09-13 Thread Daniƫl Mantione
Op Mon, 13 Sep 2010, schreef Graeme Geldenhuys: Op 2010-09-13 13:47, Martin Schreiber het geskryf: I can not use resource strings because FPC resource strings are not unicode capable AFAIK. Probably related to your choice of UCS-2 - I don't really know the specific issues you have, so it

Re: [fpc-devel] Packages, Generics

2010-09-13 Thread Dimitri Smits
- Sven Barth pascaldra...@googlemail.com schreef: Am 13.09.2010 11:44, schrieb Willibald Krenn: But enough about generics, back to packages: I'll start doing an implementation for the non-generic part first. Let's see how this goes. Since I need to read into fpc source (and do this in

Re: [fpc-devel] Comparison Delphi7/FPC2.4.0 compiled MSEide exe's

2010-09-13 Thread Florian Klaempfl
Am 13.09.2010 13:47, schrieb Martin Schreiber: On Monday, 13. September 2010 13.24:18 Florian Klaempfl wrote: Am 13.09.2010 11:15, schrieb Martin Schreiber: Delphi 7 FPC Exe size: 3131392 3689304 Code: 2128524 2138240

Re: [fpc-devel] Packages, Generics

2010-09-13 Thread Florian Klaempfl
Am 13.09.2010 14:02, schrieb Sven Barth: Am 13.09.2010 11:44, schrieb Willibald Krenn: But enough about generics, back to packages: I'll start doing an implementation for the non-generic part first. Let's see how this goes. Since I need to read into fpc source (and do this in my spare time),

Re: [fpc-devel] Packages, Generics

2010-09-13 Thread Willibald Krenn
Well, it's the Delphi way of creating a new type rather than an alias. Since they are still assignment compatible, I don't consider it as a really new type. Are you sure they are assignment compatible? I thought the whole point of the type A = type B was to make a new type, not an

Re: [fpc-devel] Packages, Generics

2010-09-13 Thread Sven Barth
Am 13.09.2010 14:46, schrieb Dimitri Smits: - Sven Barthpascaldra...@googlemail.com schreef: Am 13.09.2010 11:44, schrieb Willibald Krenn: But enough about generics, back to packages: I'll start doing an implementation for the non-generic part first. Let's see how this goes. Since I