[fpc-pascal] class destructor not recognised

Jorge Aldo G. de F. Junior jagfj80 at gmail.com
Mon Jan 7 04:47:36 CET 2013

Are you SURE you need "class constructor" ?

because usually all you need is a plain old constructor... like

constructor create(const aparam : integer); // etc

to be honest i never used a class constructor before... (dont even
know this exists).

2013/1/6 Paul Ishenin <paul.ishenin at gmail.com>:
> 07.01.13, 8:03, Howard Page-Clark пишет:
>> The following program compiles and gives output as expected, but if the
>> lines that call the class destructor are uncommented it fails to compile
>> with the error "identifier idents no member "Finalise"
> ...
>> Am I not understanding how to use a class destructor, or is this a bug?
> You don't understand.
> Class destructor is called automatically like finalization section of a
> unit. You can't call it directly.
> Best regards,
> Paul Ishenin
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

More information about the fpc-pascal mailing list