Re: [fpc-pascal] class destructor not recognised

2013-01-07 Thread Howard Page-Clark
On 07/1/13 2:42, Paul Ishenin wrote: You don't understand. Class destructor is called automatically like finalization section of a unit. You can't call it directly. Thanks for the clarification. I was confused by the fact that the writeln called in the class destructor is not displayed. But I

Re: [fpc-pascal] class destructor not recognised

2013-01-06 Thread Paul Ishenin
07.01.13, 11:47, Jorge Aldo G. de F. Junior пишет: Are you SURE you need "class constructor" ? He needs it to initialize a class variable (static field). Best regards, Paul Ishenin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://l

Re: [fpc-pascal] class destructor not recognised

2013-01-06 Thread Jorge Aldo G. de F. Junior
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 : > 07.01.13, 8:03, Howard P

Re: [fpc-pascal] class destructor not recognised

2013-01-06 Thread Paul Ishenin
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 destruct

[fpc-pascal] class destructor not recognised

2013-01-06 Thread 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" program classConstructor; {$mode objfpc} uses Classes; type TXClass = class cl