Re: [fpc-devel] Generics

2007-08-17 Thread Florian Klaempfl
Mattias Gaertner schrieb: On Thu, 16 Aug 2007 23:31:25 +0200 (CEST) Michael Van Canneyt [EMAIL PROTECTED] wrote: [...] Why is the local variable block needed? It is not. I asked the same question. It was added for symmetry reasons: if a local type block is allowed, then a var block should

Re: [fpc-devel] Generics

2007-08-17 Thread Michael Van Canneyt
On Fri, 17 Aug 2007, Florian Klaempfl wrote: Mattias Gaertner schrieb: On Thu, 16 Aug 2007 23:31:25 +0200 (CEST) Michael Van Canneyt [EMAIL PROTECTED] wrote: [...] Why is the local variable block needed? It is not. I asked the same question. It was added for symmetry

Re: [fpc-devel] Generics

2007-08-17 Thread Florian Klaempfl
Michael Van Canneyt schrieb: On Fri, 17 Aug 2007, Florian Klaempfl wrote: Mattias Gaertner schrieb: On Thu, 16 Aug 2007 23:31:25 +0200 (CEST) Michael Van Canneyt [EMAIL PROTECTED] wrote: [...] Why is the local variable block needed? It is not. I asked the same question. It was added for

Re: [fpc-devel] Generics

2007-08-17 Thread Michael Van Canneyt
On Fri, 17 Aug 2007, Florian Klaempfl wrote: Michael Van Canneyt schrieb: On Fri, 17 Aug 2007, Florian Klaempfl wrote: Mattias Gaertner schrieb: On Thu, 16 Aug 2007 23:31:25 +0200 (CEST) Michael Van Canneyt [EMAIL PROTECTED] wrote: [...] Why is the local

Re: [fpc-devel] Generics

2007-08-17 Thread Mattias Gaertner
On Fri, 17 Aug 2007 10:20:13 +0200 (CEST) Michael Van Canneyt [EMAIL PROTECTED] wrote: [...] What local types are/will be allowed? For example, this is currently not allowed: generic TTreeT = class(TObject) type public TTreeNode = specialize TNodeT; end;

Re: [fpc-devel] Generics

2007-08-17 Thread Micha Nelissen
Mattias Gaertner wrote: For example, this is currently not allowed: generic TTreeT = class(TObject) type public TTreeNode = specialize TNodeT; end; Shouldn't this be allowed? Perhaps it can only work with a complete TTreeNode description, probably the TNode is specific for use

Re: [fpc-devel] Generics

2007-08-17 Thread Bram Kuijvenhoven
Florian Klaempfl wrote: Mattias Gaertner schrieb: For example, this is currently not allowed: generic TTreeT = class(TObject) type public TTreeNode = specialize TNodeT; end; And this neither: generic TTreeT = class(TObject) type public TTreeNode = class Data: T;

Re: [fpc-devel] Request to merge formal annotation facility into main trunk

2007-08-17 Thread Michael Van Canneyt
On Fri, 17 Aug 2007, Tom Verhoeff wrote: Is it possible to merge Jochem's extensions with the main trunk? They are in the SVN repository in branches/tue/. As far as I am concerned, this is a welcome addition. If possible, I would even include your user.pdf in the docs. If it is written in