[fpc-devel] Templates / Generics Syntax
nc-gaertnma at netcologne.de
Thu Nov 3 20:41:06 CET 2005
On Thu, 3 Nov 2005 20:25:07 +0100 (CET)
Daniël Mantione <daniel.mantione at freepascal.org> wrote:
> Op Thu, 3 Nov 2005, schreef Mattias Gaertner:
> > Right. I didn't think of that.
> > What about edged brackets?
> > type
> > TGenericClass[T,F] = class
> > public
> > procedure Add(Item: T; Flag: F);
> > end;
> At first sight it looks okay. If necessary it is possible to introduce a
> two character bracket, i.e. (# #) or (! !),
Hmm. Emoticons in Freepascal. Nice idea.
> or with whatever character you want as long as it is not a prefix or
> postfix operator.
Yes. As I said, I will implement it first in Lazarus, so we can see what it
More information about the fpc-devel