Rw: [fpc-devel] Templates / Generics

Joost van der Sluis jvdsluis at nijmegen.internl.net
Tue Nov 8 21:41:22 CET 2005


On Tue, 8 Nov 2005 rstar at mnet-online.de wrote:

> Michael Van Canneyt wrote:
> >>>>>Then they have to publish their specs real soon now. And I mean
> >>>>>not
> >>>>>something in a blog, but more something like documentation. We
> >>>>>can't wait
> >>>>>another 5 years, until they finally make up their mind.
> >>>>>
> >>>>Generics are already standardized. 
> >>>>
> >>>Which standard is that ? C++ ? C# ? VB ? 
> >>>
> >>ECMA Standard 334
> >
> >But this is a standard for C#, so totally useless for Pascal syntax-wise.
> >
> Why useless? You can do exactly the same in a Pascal-styled way.
> We need just a minor part from the standard for the FPC compiler.

You stated that we could know already what the delphi-syntax will be,
if they add generics over two years. 

But we can't, since we don't know what 'pascal-styled' way they will
choose.

I would say that a pascal-way is adding the 'interface' keyword. Like in
array's and such. This is already mentioned.

The chances that Borland will choose another pascal-styled-syntax is huge.

Besides of that, I don't find that delphi-incompatibility is a
no-go-area. Especially if we (or they - the core team)  are the first ones
who implement this feature.

And incompatibilities can be solved in Delphi mode.

And in general: If we can do something better then Delphi, I choose for
loosing the compatibility.

Joost.






More information about the fpc-devel mailing list