[fpc-pascal] Name of a var

Jeppe Græsdal Johansen jjohan07 at student.aau.dk
Mon Nov 21 20:06:10 CET 2011


Den 21-11-2011 13:56, Rainer Stratmann skrev:
> Is it possible to get information of the name of a var?
>
> For Example.
>
> var
>   counter : longint;
>   varname : shortstring;
>
> varname := nameofvar( counter );
>
> The content of varname then is 'counter'.
It would most likely be very easy to implement, but what is the need?



More information about the fpc-pascal mailing list