[fpc-pascal]init a class from another class

Michael Van Canneyt michael.vancanneyt at wisa.be
Mon Oct 8 23:56:03 CEST 2001


On Tue, 9 Oct 2001, Matt Emson wrote:

> Taking on board what Jonas has said (you have mixed Turbo Pascal syntax with
> that of Object Pascal/Delphi)..
>
>
> >tCoDec = CLASS
> >  constructor Create; VIRTUAL;
> >  destructor Destroy; override;
> >end;
> >
> >tmyCoDec = CLASS (tCoDec)
> >  constructor create; OVERRIDE;
> >  destructor Destroy; OVERRIDE;
> >end;
> >
> >pCodecList = ^tCodecList;
> >tCodecList = RECORD
> >  codec :tCoDec;
> >  next :pCodecList;
> >end;
>
> Does FPC have a TList? Surely that would work out better.

It does, see the Classes unit.

Michael.






More information about the fpc-pascal mailing list