[fpc-pascal] Name of a var

Martin lazarus at mfriebe.de
Tue Nov 22 14:27:03 CET 2011


On 22/11/2011 13:09, michael.vancanneyt at wisa.be wrote:
>
>
> On Tue, 22 Nov 2011, Rainer Stratmann wrote:
>
>>>
>>> Once more: the name in the debug message is totally irrelevant.
afaik debugging was not the initially mentioned purpose. Streaming to a 
file was. That already exists, see last line.

>>> I would fire anyone RELYING on that.
>> Are you sure that you are objective in this diskussion?
>
> As much as anyone else in this discussion ? :-)

Just NameOfVar(x) is indeed not very useful.

But there where hints what people would also want.
- The Name of a variable a pointer is pointing to (or that was given by 
the callee for a param)
- looping through a list of variables

That would require a list of all variables and there names. So the 
implementation cost of the feature would be a lot higher.

And as I already wrote, why re-invent the wheel? Use published 
properties of an object, instead of variables. They have RTTI, so they 
can already do all of this.



More information about the fpc-pascal mailing list