[fpc-pascal] class constants
Leonardo M. Ram�
martinrame at yahoo.com
Thu Jan 24 01:03:47 CET 2008
Jonathan,
I never needed such type of feature, a propossed solution is to create one unit per class, and
declare your constants in the implementation section of each unit.
Example:
unit People
interface
type
TPeople = class
..
end;
implementation
const
name = 'default name';
...
end.
--- Jonathan Benedicto <contact at jomitech.com> wrote:
> Hello,
>
> Does FPC support class constants, and if it doesn't, are there any plans to
> add this support?
>
> Example:
> type
> TMyClass = class
> begin
> private
> const MyConst = '123';
>
> end;
>
> Jon
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the fpc-pascal
mailing list