[fpc-devel] Templates / Generics
Micha Nelissen
micha at neli.hopto.org
Mon Nov 7 19:05:01 CET 2005
On Mon, 07 Nov 2005 14:45:19 +0100
Bram Kuijvenhoven <kuifwaremailinglists at xs4all.nl> 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 the case of function calls and array indexing, these <> could follow the type identifier directly.
You got a point here, but the "where T is Foo" stuff is crap then, don't you
agree?
TGType<T: TBaseType> = class(...) ... end;
is better then, when compared to your parameter example.
Micha
More information about the fpc-devel
mailing list