[fpc-pascal] Name of a var

Martin lazarus at mfriebe.de
Tue Nov 22 00:08:14 CET 2011


On 21/11/2011 23:04, Rainer Stratmann wrote:
> Am Monday 21 November 2011 20:06:10 schrieb Jeppe Græsdal Johansen:
>> It would most likely be very easy to implement, but what is the need?
> I am storing vars in a textfile like:
>
> mintemp: 300
> maxtemp: 350
>
> And so on ...
>
> I put the pointer to the var and the savetext (the same name as the var) in an
> array wich describes all the vars. When saving all vartexts are written and
> then the values.
> It would be easier then to detect double names for example. The compiler does
> it then.
>

If you make all the variables published properties of a class, then you 
can use RTTI





More information about the fpc-pascal mailing list