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.ishe...@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@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal