[fpc-devel] Generics Basics

John Briggs john47atoptusnetdotcomdotau at johneb47.id.au
Thu Nov 10 10:24:44 CET 2005

On Tue, Nov 08, 2005 at 10:00:49PM +0100, dannym wrote:
> Hi,
> Am Dienstag, den 08.11.2005, 18:10 -0200 schrieb Felipe Monteiro de
> Carvalho:
> > Hello,
> > 
> > I am trying to understand what exactly generics are. I read the wiki
> > page, but there are lot's of code examples and very few explanations.
> > Can someone explain it to me in a (relatively) simple way?
> > 
> > What problem is it trying to solve?
> It makes types parametrizable.
Just my two cents worth:

To me generics should essentially make FPC a typeless language. i.e. everthing
is an object and you just pass messages between objects, ala Smalltalk. How it
is implemented is a moot point because at the top level you shouldn't be able 
to see the implementation of the objects.

The one thing that does concern me is why implement generics if you fail to 
implement the late binding of the objects which to me is the greatest gain of
generic programming.

Feel free to shoot me down in flames as I have not been following this
discussion fully to understand all of its details

Feeling exploited, impoverished or imprisoned??
Knock down the Gates of .... and break free into the "Brave GNU World" of the
"Free Software Foundation".
"Squeak" with delight at pleasure this freedom brings.

More information about the fpc-devel mailing list