[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;
> >tmyCoDec = CLASS (tCoDec)
> > constructor create; OVERRIDE;
> > destructor Destroy; OVERRIDE;
> >pCodecList = ^tCodecList;
> >tCodecList = RECORD
> > codec :tCoDec;
> > next :pCodecList;
> Does FPC have a TList? Surely that would work out better.
It does, see the Classes unit.
More information about the fpc-pascal