[fpc-pascal] Constant members within class

Marco van de Voort marcov at stack.nl
Wed May 30 21:24:28 CEST 2007

> Is there a way to define const members for a class, as for example in
> TClass = class
>     public
>        const i : integer;    // and hopping to be able to set it within 
> the constructor?

It's already there

   taclass = class
		 property i write fi;

More information about the fpc-pascal mailing list