Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Marco van de Voort
> Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > > > > > Is this correct so far? > > Ok. So, FPC will follow chrome/Delphi? Afaik there is no need to. Chrome is as relevant as C++, since it is a different language, and Delphi implements .NET stuff, and maybe provides a backwards compat kludge f

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Bram Kuijvenhoven
Peter Vreman wrote: The token-lookahead is a hack and will create more problems and performance loss in a critical part of the compiler. The restriction of type blocks only is not strange at all, Delphi allows 'class of' is also only in type blocks Ok, I didn't know it would be a real ugly hac

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Bram Kuijvenhoven
Mattias Gaertner wrote: On Mon, 07 Nov 2005 23:06:37 +0100 Florian Klaempfl <[EMAIL PROTECTED]> wrote: Ok. So, FPC will follow chrome/Delphi? I would do so, see my mail from the weekend :) I see, but also I see all the other posts still discussing the syntax. I wondered, if it was definitive

[fpc-devel] fpc & lazarus & zeosdbo

2005-11-07 Thread barko
I use fpc 2.0.1 from svn & lazarus from svn on linux. After fpc revision 1659 and up I have this problem when I start lazarus with zeosdbo packages for lazarus: ./startlazarus Runtime error 210 at $08055B95 $08055B95 $0865E350 ZDBCDBLIB_init, line 737 of /home/barkooo/freepascal/lazarus.

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Michael Van Canneyt
On Mon, 7 Nov 2005, Micha Nelissen wrote: > On Mon, 07 Nov 2005 21:07:42 +0100 > Marc Weustink <[EMAIL PROTECTED]> wrote: > > > Params are passed to a procedure define like > > > >procedure MyProc(param, param, ..) > > > > Arrays are declared like > > > >A: array[0..9] of ... > > >

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Mattias Gaertner
On Mon, 07 Nov 2005 23:06:37 +0100 Florian Klaempfl <[EMAIL PROTECTED]> wrote: >[...] > > Ok. So, FPC will follow chrome/Delphi? > > I would do so, see my mail from the weekend :) I see, but also I see all the other posts still discussing the syntax. I wondered, if it was definitive. Mattias _

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Micha Nelissen
On Mon, 07 Nov 2005 21:07:42 +0100 Marc Weustink <[EMAIL PROTECTED]> wrote: > Params are passed to a procedure define like > >procedure MyProc(param, param, ..) > > Arrays are declared like > >A: array[0..9] of ... > > And generics they are soly defined by the fact that a type has

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Florian Klaempfl
Mattias Gaertner wrote: > On Mon, 07 Nov 2005 22:41:06 +0100 > Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > >>Mattias Gaertner wrote: >> >>>On Mon, 07 Nov 2005 19:29:51 +0100 >>>Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: >>> >>> >>> Micha Nelissen wrote: >On Mon, 07 Nov 20

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Mattias Gaertner
On Mon, 07 Nov 2005 22:41:06 +0100 Florian Klaempfl <[EMAIL PROTECTED]> wrote: > Mattias Gaertner wrote: > > On Mon, 07 Nov 2005 19:29:51 +0100 > > Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: > > > > > >>Micha Nelissen wrote: > >> > >>>On Mon, 07 Nov 2005 14:45:19 +0100 > >>>Bram Kuijvenhoven <

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Florian Klaempfl
Mattias Gaertner wrote: > On Mon, 07 Nov 2005 19:29:51 +0100 > Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: > > >>Micha Nelissen wrote: >> >>>On Mon, 07 Nov 2005 14:45:19 +0100 >>>Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: >>> Does <> for generics fit into Pascal? Well, we use [] for array

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Michael Van Canneyt
On Mon, 7 Nov 2005, Anton Tichawa wrote: > Marc Weustink wrote: > > > Bram Kuijvenhoven wrote: > > > > > Micha Nelissen wrote: > > > > > > > Bram Kuijvenhoven wrote: > > > > > > > > > Florian Klaempfl wrote: > > > > > > > > > > > - we'll use a syntax as close as possible to Chrome, e.g. > >

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Anton Tichawa
Marc Weustink wrote: Bram Kuijvenhoven wrote: Micha Nelissen wrote: Bram Kuijvenhoven wrote: Florian Klaempfl wrote: - we'll use a syntax as close as possible to Chrome, e.g. type TList = class ... end; I greatly favor this syntaxis above the generic-modifier. It will look a

Re: [fpc-devel] (no subject)

2005-11-07 Thread rstar
Michael Van Canneyt wrote: On Mon, 7 Nov 2005 [EMAIL PROTECTED] wrote: Marco van de Voort wrote: Interesting switch in FPC 2.1.1: -Skload fpcylix unit what is it for? Afaik it implicitely USES the fpcylix unit that contains some identifiers for Kylix compat that

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Marc Weustink
Bram Kuijvenhoven wrote: Micha Nelissen wrote: Bram Kuijvenhoven wrote: Florian Klaempfl wrote: - we'll use a syntax as close as possible to Chrome, e.g. type TList = class ... end; I greatly favor this syntaxis above the generic-modifier. It will look at a lot more familiar to

Re: [fpc-devel] (no subject)

2005-11-07 Thread Michael Van Canneyt
On Mon, 7 Nov 2005 [EMAIL PROTECTED] wrote: > Marco van de Voort wrote: > > > > Interesting switch in FPC 2.1.1: > > > > > > -Skload fpcylix unit > > > > > > what is it for? > > > > > > > > > > Afaik it implicitely USES the fpcylix unit that contains some identifiers > > for Kylix

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Mattias Gaertner
On Mon, 07 Nov 2005 19:29:51 +0100 Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: > Micha Nelissen wrote: > > On Mon, 07 Nov 2005 14:45:19 +0100 > > Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: > >>Does <> for generics fit into Pascal? Well, we use [] for array > >indexing, and () for parameter pass

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Bram Kuijvenhoven
Micha Nelissen wrote: On Mon, 07 Nov 2005 14:45:19 +0100 Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: Does <> for generics fit into Pascal? Well, we use [] for array indexing, and () for parameter passing to procedures/functions/methods. So why not use <> for passing parameters to generic type

Re: [fpc-devel] (no subject)

2005-11-07 Thread Marco van de Voort
> Marco van de Voort wrote: > > > >Afaik it implicitely USES the fpcylix unit that contains some identifiers > >for Kylix compat that we _really_ didn't want in the normal system/sysutils > >unit. > > > Is FPC able to compile Kylix forms (*.xfm) now? Forms are something of a higher level than FPC.

Re: [fpc-devel] (no subject)

2005-11-07 Thread rstar
Marco van de Voort wrote: Interesting switch in FPC 2.1.1: -Skload fpcylix unit what is it for? Afaik it implicitely USES the fpcylix unit that contains some identifiers for Kylix compat that we _really_ didn't want in the normal system/sysutils unit.

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Micha Nelissen
On Mon, 07 Nov 2005 14:45:19 +0100 Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: > Does <> for generics fit into Pascal? Well, we use [] for array indexing, and > () for parameter passing to procedures/functions/methods. So why not use <> > for passing parameters to generic types? And, similar to

Re: [fpc-devel] Re: Thread REVERT (Ales Katona)

2005-11-07 Thread Ales Katona
Thomas Schatzl wrote: From: Ales Katona <[EMAIL PROTECTED]> What about simply disabling such -Ct compiler switch (with nice error message) under Windows ? Or maybe it should "do nothing" under Windows ? I have no idea how -Ct works. It seems there are also report(by Pavel to be more prec

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Marco van de Voort
> Micha Nelissen wrote: > Consider for example the following: Is Java bad because it looks like C++? No. But it inherits from C syntax in nearly all forms. The test is consistency. Java is consistent if it follows C(++) syntax, (the rest of the language is C(++) like), (free)pascal not, > Or

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Bram Kuijvenhoven
Micha Nelissen wrote: Bram Kuijvenhoven wrote: Florian Klaempfl wrote: - we'll use a syntax as close as possible to Chrome, e.g. type TList = class ... end; I greatly favor this syntaxis above the generic-modifier. It will look at a lot more familiar to most programmers (due to e.g.

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Marco van de Voort
> Peter Vreman wrote: > TStringMyObjectMap = TMap; > > etc. > > One more question: If I understand it correctly, the parser uses a > recursive top-down recursive descent approach and not a bottom-up approach > like the LALR parsers generated by the pyacc tool? Correct. Pascal tools usually do.

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Bram Kuijvenhoven
Peter Vreman wrote: The token-lookahead is a hack and will create more problems and performance loss in a critical part of the compiler. The restriction of type blocks only is not strange at all, Delphi allows 'class of' is also only in type blocks Ok, I didn't know it would be a real ugly hac

[fpc-devel] Re: Thread REVERT (Ales Katona)

2005-11-07 Thread Thomas Schatzl
From: Ales Katona <[EMAIL PROTECTED]> What about simply disabling such -Ct compiler switch (with nice error message) under Windows ? Or maybe it should "do nothing" under Windows ? I have no idea how -Ct works. It seems there are also report(by Pavel to be more precise) that -Ct causes proble

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Micha Nelissen
Bram Kuijvenhoven wrote: Florian Klaempfl wrote: - we'll use a syntax as close as possible to Chrome, e.g. type TList = class ... end; I greatly favor this syntaxis above the generic-modifier. It will look at a lot more familiar to most programmers (due to e.g. C++ and Java), "Mu

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Peter Vreman
>> - instantiation will be only possible in declaration blocks, not in code >> blocks: >> possible: >> var >> mylist : TList; >> const >> mylist : TList = nil; >> type >> mylist = TList; >> forbidden: >> procedure p(mylist : TList); >> begin >> ... >> mylist:=TList.create; >> ... >> end

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Bram Kuijvenhoven
Hi! I've been following the generic discussion with great interest. Here are some of my thoughts. Florian Klaempfl wrote: - we'll use a syntax as close as possible to Chrome, e.g. type TList = class ... end; I greatly favor this syntaxis above the generic-modifier. It will look at a l

Re: [fpc-devel] (no subject)

2005-11-07 Thread Florian Klaempfl
Tomas Hajny wrote: > Marco van de Voort wrote: > >>>Interesting switch in FPC 2.1.1: >>> >>> -Skload fpcylix unit >>> >>>what is it for? >> >>Afaik it implicitely USES the fpcylix unit that contains some identifiers >>for Kylix compat that we _really_ didn't want in the normal >>system/

Re: [fpc-devel] (no subject)

2005-11-07 Thread Tomas Hajny
Marco van de Voort wrote: >> Interesting switch in FPC 2.1.1: >> >>-Skload fpcylix unit >> >> what is it for? > > Afaik it implicitely USES the fpcylix unit that contains some identifiers > for Kylix compat that we _really_ didn't want in the normal > system/sysutils > unit. BTW, looki

Re: [fpc-devel] (no subject)

2005-11-07 Thread Vincent Snijders
[EMAIL PROTECTED] wrote: Marco van de Voort wrote: Interesting switch in FPC 2.1.1: -Skload fpcylix unit what is it for? Afaik it implicitely USES the fpcylix unit that contains some identifiers for Kylix compat that we _really_ didn't want in the normal system/sysutils unit

Re: [fpc-devel] (no subject)

2005-11-07 Thread Peter Vreman
>>>Interesting switch in FPC 2.1.1: >>> >>> -Skload fpcylix unit >>> >>>what is it for? >>Afaik it implicitely USES the fpcylix unit that contains some identifiers >>for Kylix compat that we _really_ didn't want in the normal >> system/sysutils >>unit. > where can i find it ? ~/fpc>>> fi

Re: [fpc-devel] (no subject)

2005-11-07 Thread rstar
Marco van de Voort wrote: Interesting switch in FPC 2.1.1: -Skload fpcylix unit what is it for? Afaik it implicitely USES the fpcylix unit that contains some identifiers for Kylix compat that we _really_ didn't want in the normal system/sysutils unit.

Re: [fpc-devel] (no subject)

2005-11-07 Thread Marco van de Voort
> Interesting switch in FPC 2.1.1: > >-Skload fpcylix unit > > what is it for? Afaik it implicitely USES the fpcylix unit that contains some identifiers for Kylix compat that we _really_ didn't want in the normal system/sysutils unit. ___