Re: [fpc-devel] Code Style in FPC

2010-11-11 Thread Sven Barth
Am 10.11.2010 22:20, schrieb Carl-Philip Haensch: Hi, what code style does fpc have? There is a lot of inconsistency in the units, for example the assembler units with tai in lower case everything and in other rtl units a clear camel case.. Is there a style guideline? (link) For the compiler

Re: [fpc-devel] Interface scope incompatibility with Delphi

2010-11-11 Thread Henry Vermaak
On 10 November 2010 18:13, Alexander Klenin kle...@gmail.com wrote: As a piece of anecdotal evidence, the fact that FPC does not properly support interfaces was the reason for at least one company I worked for to reject it and move to Delphi 2007 instead (from Delphi 7). Why didn't they just

Re: [fpc-devel] Interface scope incompatibility with Delphi

2010-11-11 Thread Jonas Maebe
On 11 Nov 2010, at 00:21, Henry Vermaak wrote: On 10 November 2010 18:13, Alexander Klenin kle...@gmail.com wrote: As a piece of anecdotal evidence, the fact that FPC does not properly support interfaces was the reason for at least one company I worked for to reject it and move to Delphi

Re: [fpc-devel] Pointer type declaration issue

2010-11-11 Thread Thaddy
Tnx Sven, I am tracking it down. the KOL library is notorious for its complexity with include files and conditionals compiler. It looks like we may have hit a limit somewhere. With a clean build my example indeed compiles in all modes (although KOL should use Mdelphi by default) Tnx for your

Re: [fpc-devel] Pointer type declaration issue

2010-11-11 Thread Sven Barth
Am 11.11.2010 12:09, schrieb Thaddy: Tnx Sven, I am tracking it down. the KOL library is notorious for its complexity with include files and conditionals compiler. It looks like we may have hit a limit somewhere. With a clean build my example indeed compiles in all modes (although KOL should

Re: [fpc-devel] Interface scope incompatibility with Delphi

2010-11-11 Thread Henry Vermaak
On 11/11/10 10:18, Jonas Maebe wrote: On 11 Nov 2010, at 00:21, Henry Vermaak wrote: On 10 November 2010 18:13, Alexander Kleninkle...@gmail.com wrote: As a piece of anecdotal evidence, the fact that FPC does not properly support interfaces was the reason for at least one company I worked

Re: [fpc-devel] Interface scope incompatibility with Delphi

2010-11-11 Thread Graeme Geldenhuys
Op 2010-11-11 01:21, Henry Vermaak het geskryf: Why didn't they just set a bounty or pay a compiler dev to fix it? Because that is still no guarantee that it will be implemented in a timely fashion. Our company tried that route before without success. We set a $500 bounty, it was accepted very

Re: [fpc-devel] Interface scope incompatibility with Delphi

2010-11-11 Thread Thaddy
On 11-11-2010 0:21, Henry Vermaak wrote: On 10 November 2010 18:13, Alexander Kleninkle...@gmail.com wrote: Why didn't they just set a bounty or pay a compiler dev to fix it? I'm sure that would be cheaper than buying lots of Delphi licences. Henry

[fpc-devel] Two issues with variant type definitions

2010-11-11 Thread Sergei Gorelkin
Hello, Two questions I wanted to ask: 1) There are two variant type defintions (varxxx constants): one in compiler/symdef.pas, another one in rtl/inc/varianth.inc. Worse, they are out of sync. Is it really necessary to have a separate set of these definitions in compiler? 2) In FPC,

Re: [fpc-devel] Two issues with variant type definitions

2010-11-11 Thread Florian Klaempfl
Am 11.11.2010 15:19, schrieb Sergei Gorelkin: Hello, Two questions I wanted to ask: 1) There are two variant type defintions (varxxx constants): one in compiler/symdef.pas, another one in rtl/inc/varianth.inc. Worse, they are out of sync. Is it really necessary to have a separate set of

Re: [fpc-devel] Two issues with variant type definitions

2010-11-11 Thread Sergei Gorelkin
Florian Klaempfl пишет: Am 11.11.2010 15:19, schrieb Sergei Gorelkin: Hello, Two questions I wanted to ask: 1) There are two variant type defintions (varxxx constants): one in compiler/symdef.pas, another one in rtl/inc/varianth.inc. Worse, they are out of sync. Is it really necessary to have

Re: [fpc-devel] Interface scope incompatibility with Delphi

2010-11-11 Thread Alexander Klenin
On Thu, Nov 11, 2010 at 21:43, Henry Vermaak henry.verm...@gmail.com wrote: On 11/11/10 10:18, Jonas Maebe wrote: Why didn't they just set a bounty or pay a compiler dev to fix it? I'm sure that would be cheaper than buying lots of Delphi licences. I don't think that this is something that

Re: [fpc-devel] Interface scope incompatibility with Delphi

2010-11-11 Thread Dimitri Smits
- Graeme Geldenhuys graemeg.li...@gmail.com schreef: Hi, Attached is a simple console application that outputs a hierarchy of log information. Under Delphi 7 we used to use a TInterfacedObject descendant to track the call stack. This same trick was very handy for changing and

Re: [fpc-devel] Pointer type declaration issue

2010-11-11 Thread Hans-Peter Diettrich
Sven Barth schrieb: Perhaps somewhere a new type section begins between the declaration of the pointer (Foo = ^Bar) and the declaration of the real type (Bar = XYZ)? This could easily be the case when includes are used and those aren't clean ^^ (e.g. packages\sqlite\src\sqlite.inc had a end.

Re: [fpc-devel] Interface scope incompatibility with Delphi

2010-11-11 Thread Michael Van Canneyt
On Thu, 11 Nov 2010, Graeme Geldenhuys wrote: Op 2010-11-11 01:21, Henry Vermaak het geskryf: Why didn't they just set a bounty or pay a compiler dev to fix it? Because that is still no guarantee that it will be implemented in a timely fashion. Our company tried that route before without