[fpc-devel] Generics

Michael Van Canneyt michael at freepascal.org
Thu Aug 16 23:31:25 CEST 2007



On Thu, 16 Aug 2007, Mattias Gaertner wrote:

> On Thu, 16 Aug 2007 14:59:47 -0500 (CDT)
> Jesus Reyes <jesusrmx at yahoo.com.mx> wrote:
> 
> > 
> > --- Jesus Reyes <jesusrmx at yahoo.com.mx> escribió:
> > 
> > > 
> > > --- Michael Van Canneyt <michael at freepascal.org> escribió:
> > > 
> > > > 
> > > > 
> > > > On Thu, 16 Aug 2007, Mattias Gaertner wrote:
> > > > 
> > > > > 
> > > > > What is the state and future plans of generics?
> > > > > I only found the wiki page
> > > > > 
> > > > > http://wiki.lazarus.freepascal.org/Generics
> > > > > 
> > > > > which does not even mention the current syntax.
> > > > 
> > > > The current syntax is descibed in the docs, reference manual.
> > > > There is a chapter about generics. Feel free to comment on it;
> > > > any omissions, I'll be glad to fill them in (as far as I can,
> > > > I don't use generics myself).
> > > > 
> > > > Michael.
> > > 
> > > Images are so big that is difficult to follow the diagrams..
> > 
> > sorry I forgot to put at least a link:
> > 
> > http://www.freepascal.org/docs-html/ref/refse38.html
> 
> Thanks.
> 
> Maybe the wiki page should be marked as obsolete and a link to the
> reference should be added? 

Maybe, yes.

> 
> 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 also be allowed.

But they are not different from local fields.

Michael.


More information about the fpc-devel mailing list