[fpc-pascal] Constant members within class

Christos Chryssochoidis c.chryssochoidis at gmail.com
Wed May 30 21:44:30 CEST 2007


Thanks a lot for the prompt response. I 'm a total novice in Object 
Pascal. I will have a look to the classes' properties…


Marco van de Voort wrote:
>> 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
> 		fi:integer;
> 		public 
> 		 property i write fi;
>                 end;
>
> _______________________________________________
> 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