Re: [fpc-pascal] Constant object

2006-05-05 Thread Geno Roupsky
I guess you're refering to the old tp days. If so you should be able to acheive constant object like that:type  TCObject = object    P1: Double;  end;var  MyCObject: TCObject;begin  MyCObject.P1 := 0;end.This code should world although I haven't tested it.But there is no easy(without some nasty ha

[fpc-pascal] Constant object

2006-05-01 Thread Michael Müller
How can I declare a constant object? var MyTest: TObject; begin MyTest := TObject.Create; end. works (for sure). How can I declare 'const'? Thanks Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mai