Re: [fpc-devel] Packages, Generics

2010-09-14 Thread Florian Klaempfl
Am 13.09.2010 14:51, schrieb 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 don't have a delphi here, but I'am

Re: [fpc-devel] FPC/Lazarus Rebuild performance

2010-09-14 Thread Hans-Peter Diettrich
Florian Klämpfl schrieb: This is a very specific example which allows to explain rather simple the slowness of 2.x: The reason is a decision geared by maintainability and portability: 2.x uses a so-called graph colouring register allocator while 1.x used a pretty simple register allocator

Re: [fpc-devel] Packages, Generics

2010-09-14 Thread Dimitri Smits
- Sven Barth pascaldra...@googlemail.com schreef: Am 13.09.2010 14:46, schrieb Dimitri Smits: as said before, inspiration can be had from how they do it, but that doesn't mean fpc should do it that way. Especially in a crossplatform context, and more so cross-architecture, it is not a

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

2010-09-14 Thread Florian Klaempfl
Am 13.09.2010 17:10, schrieb Dimitri Smits: - Florian Klaempfl flor...@freepascal.org schreef: 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

Re: [fpc-devel] Packages, Generics

2010-09-14 Thread Florian Klaempfl
Am 14.09.2010 01:26, schrieb Willibald Krenn: [lots of useful information snipped] - The ability to import/export functions, procedures AND variables from binaries (although export from shared library only should be sufficient). This works on Windows, but on Linux I had problems. Packages

Re: [fpc-devel] Fatal: Internal error 200111022

2010-09-14 Thread Florian Klaempfl
Am 14.09.2010 01:13, schrieb Leonardo M. Ramé: Hi, does anyone knows what the error Fatal: Internal error 200111022 means?. Something happened which should not happen ;) Looks like an error with overloading. Can you create a cut down example? ___

Re: [fpc-devel] FPC/Lazarus Rebuild performance

2010-09-14 Thread Hans-Peter Diettrich
Florian Klämpfl schrieb: Anyways, before this ends in an endless discussion: if anybody is interested in improving FPC compilation speed (for my needs is sufficient) and have a look at fillchar IMO not FillChar is the bottleneck, instead it's the access to newly allocated memory in/around

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

2010-09-14 Thread Dimitri Smits
- Florian Klaempfl flor...@freepascal.org schreef: 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

Re: [fpc-devel] Packages, Generics

2010-09-14 Thread Willibald Krenn
[lots of useful information snipped] - The ability to import/export functions, procedures AND variables from binaries (although export from shared library only should be sufficient). This works on Windows, but on Linux I had problems. Packages also export/import RTTI, ClassVars, types, all

Re: [fpc-devel] [patch] pscanner: differentiate between EOL Tab characters from general Whitespace

2010-09-14 Thread Darius Blaszyk
On Sat, 2010-08-28 at 22:51 +0300, Žilvinas Ledas wrote: Tried sample project today. Some a comment and a question: 1) I have a strange error when the same file is modified twice (and afterwards restored twice). One is: I'm looking at this issue atm. As soon as I have a definite solution I

Re: [fpc-devel] Packages, Generics

2010-09-14 Thread Willibald Krenn
Sven Barth schrieb: [snip] In theory(!) it should be rather simple to implement shared cross platform packages (those that are loaded on app startup by the OS and not dynamically during the run). Thanks for the hints! They are very welcome. Cheers, Willi

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

2010-09-14 Thread Graeme Geldenhuys
Op 2010-09-13 14:34, Daniël Mantione het geskryf: Please don't turn this discussion into a UTF-8 versus UCS-2/UTF-16 debate. I had no such intension. I guess I was simply stating the obvious - that FPC resourcestrings might have issue with other Unicode formats (which wouldn't surprise me),

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

2010-09-14 Thread Joost van der Sluis
On Mon, 2010-09-13 at 09:03 +0200, Michael Van Canneyt wrote: 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

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

2010-09-14 Thread Jonas Maebe
On 14 Sep 2010, at 17:23, Martin Schreiber wrote: The classes are used for example by with ttheclass1(theclassinstance) do begin end; Using a class means sending a class message to it, or using the class type as a first class entity in the program (e.g. x is classtype). A typecast can

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

2010-09-14 Thread Martin Schreiber
On Tuesday, 14. September 2010 17.00:02 Florian Klaempfl wrote: In MSEgui there are many local classdefs in the form of type ttheclass1 = class(ttheclass); in order to access protected class members This should not create any additional data. not even rtti-related and

Re: [fpc-devel] [patch] pscanner: differentiate between EOL Tab characters from general Whitespace

2010-09-14 Thread Darius Blaszyk
On Mon, 2010-09-13 at 23:31 +0200, Darius Blaszyk wrote: On Sat, 2010-08-28 at 22:51 +0300, Žilvinas Ledas wrote: Tried sample project today. Some a comment and a question: 1) I have a strange error when the same file is modified twice (and afterwards restored twice). One is: I'm looking

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

2010-09-14 Thread Michael Van Canneyt
On Mon, 13 Sep 2010, Joost van der Sluis wrote: So as long as this problem isn't fixed in fpcmake, we can't use fpmake for packages which are installed using fpcmake. Iow: we can't make package which have dependencies on any package which comes with Free Pascal. (As long as we don't switch

Re: [fpc-devel] Fatal: Internal error 200111022

2010-09-14 Thread Leonardo M . Ramé
Sorry Florian, the error happened trying to compile some auto-generated code with wrong property assignments, with overloaded setters. It's fixed now. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Tue, 9/14/10, Florian Klaempfl flor...@freepascal.org wrote: From: Florian Klaempfl

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

2010-09-14 Thread Joost van der Sluis
On Tue, 2010-09-14 at 18:53 +0200, Michael Van Canneyt wrote: On Mon, 13 Sep 2010, Joost van der Sluis wrote: So as long as this problem isn't fixed in fpcmake, we can't use fpmake for packages which are installed using fpcmake. Iow: we can't make package which have dependencies on

Re: [fpc-devel] Fatal: Internal error 200111022

2010-09-14 Thread Florian Klämpfl
Am 14.09.2010 19:39, schrieb Leonardo M. Ramé: Sorry Florian, the error happened trying to compile some auto-generated code with wrong property assignments, with overloaded setters. It's fixed now. In FPC or your code? Leonardo M. Ramé http://leonardorame.blogspot.com --- On Tue,

Re: [fpc-devel] Fatal: Internal error 200111022

2010-09-14 Thread Leonardo M . Ramé
My code, don't worry. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Tue, 9/14/10, Florian Klämpfl flor...@freepascal.org wrote: From: Florian Klämpfl flor...@freepascal.org Subject: Re: [fpc-devel] Fatal: Internal error 200111022 To: FPC developers' list

Re: [fpc-devel] Fatal: Internal error 200111022

2010-09-14 Thread Florian Klämpfl
Am 14.09.2010 21:31, schrieb Leonardo M. Ramé: My code, don't worry. Well, I worry because no code to compile should be able to trigger an internal error. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Packages, Generics

2010-09-14 Thread Sven Barth
Am 14.09.2010 01:26, schrieb Willibald Krenn: [lots of useful information snipped] - The ability to import/export functions, procedures AND variables from binaries (although export from shared library only should be sufficient). This works on Windows, but on Linux I had problems. Packages

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

2010-09-14 Thread Michael Van Canneyt
On Tue, 14 Sep 2010, Joost van der Sluis wrote: On Tue, 2010-09-14 at 18:53 +0200, Michael Van Canneyt wrote: On Mon, 13 Sep 2010, Joost van der Sluis wrote: So as long as this problem isn't fixed in fpcmake, we can't use fpmake for packages which are installed using fpcmake. Iow: we

Re: [fpc-devel] Packages, Generics

2010-09-14 Thread Paulo Costa
On 13/09/2010 14:16, Florian Klaempfl wrote: Am 13.09.2010 14:51, schrieb 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