[fpc-pascal] Constant members within class

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


Hi,

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…
      
end;     
      
 ?



Thank you in advance






More information about the fpc-pascal mailing list