Re: [fpc-devel] $IF issues

2006-08-14 Thread Florian Klaempfl
Graeme Geldenhuys wrote: On 8/14/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: You miss the point: Delphi compatibility mode is for people who develop for FPC, but want to compile occasionally in Delphi. In the current situation they are not aware of this weakness of Delphi (no support of $EN

Re: [fpc-devel] $IF issues

2006-08-14 Thread Graeme Geldenhuys
On 8/14/06, Daniël Mantione <[EMAIL PROTECTED]> wrote: mode. To write new code that is compilable by both FPC and Delphi, Objpas mode should suit as well as Delphi mode. Not quite! The project I am working on (tiOPF) is mainly used by Delphi developers, as I mentioned before. My first thought

Re: [fpc-devel] $IF issues

2006-08-14 Thread Michael Van Canneyt
On Mon, 14 Aug 2006, Daniël Mantione wrote: Op Mon, 14 Aug 2006, schreef Vincent Snijders: You miss the point: Delphi compatibility mode is for people who develop for FPC, but want to compile occasionally in Delphi. It can be used that way, but its main purpose is to support Delphi const

Re: [fpc-devel] $IF issues

2006-08-14 Thread Daniël Mantione
Op Mon, 14 Aug 2006, schreef Vincent Snijders: > You miss the point: Delphi compatibility mode is for people who develop for > FPC, but want to compile occasionally in Delphi. It can be used that way, but its main purpose is to support Delphi constructions that we consider broken and therefore

Re: [fpc-devel] $IF issues

2006-08-14 Thread Graeme Geldenhuys
On 8/14/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: You miss the point: Delphi compatibility mode is for people who develop for FPC, but want to compile occasionally in Delphi. In the current situation they are not aware of this weakness of Delphi (no support of $ENDIF for $IF), until they

Re: [fpc-devel] $IF issues

2006-08-14 Thread Vincent Snijders
Daniël Mantione schreef: Op Mon, 14 Aug 2006, schreef Graeme Geldenhuys: On 8/14/06, Peter Vreman <[EMAIL PROTECTED]> wrote: Is this a feature or a FPC bug? FPC allows the $IF to be closed with the $ENDIF as well as the $IFEND. This is not Delphi compatible. The closing tag for $IF is $IFE

Re: [fpc-devel] $IF issues

2006-08-14 Thread Daniël Mantione
Op Mon, 14 Aug 2006, schreef Graeme Geldenhuys: > On 8/14/06, Peter Vreman <[EMAIL PROTECTED]> wrote: > > > Is this a feature or a FPC bug? FPC allows the $IF to be closed > > > with > > > the $ENDIF as well as the $IFEND. This is not Delphi compatible. > > > > > > The closing tag for $IF is

Re: [fpc-devel] $IF issues

2006-08-14 Thread Graeme Geldenhuys
On 8/14/06, Peter Vreman <[EMAIL PROTECTED]> wrote: > Is this a feature or a FPC bug? FPC allows the $IF to be closed with > the $ENDIF as well as the $IFEND. This is not Delphi compatible. > > The closing tag for $IF is $IFEND > The closing tag for $IFDEF is $ENDIF Feature. Maybe this shoul

Re: [fpc-devel] $IF issues

2006-08-14 Thread Peter Vreman
> Looking at the code below... > > {$if defined(ver2_0)} > {$note This is not delphi compatible. } > {$endif} > > > Is this a feature or a FPC bug? FPC allows the $IF to be closed with > the $ENDIF as well as the $IFEND. This is not Delphi compatible. > > The closing tag for $IF is $IFEND > The

[fpc-devel] $IF issues

2006-08-14 Thread Graeme Geldenhuys
Looking at the code below... {$if defined(ver2_0)} {$note This is not delphi compatible. } {$endif} Is this a feature or a FPC bug? FPC allows the $IF to be closed with the $ENDIF as well as the $IFEND. This is not Delphi compatible. The closing tag for $IF is $IFEND The closing tag for $IF