[fpc-pascal] Name of a var

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Nov 22 12:17:44 CET 2011


On 2011-11-22 13:02, michael.vancanneyt at wisa.be wrote:
> 
> No, if I was to program it using varname, I would get the name of the
> parameter in the function SendInteger.

That's what I thought - and mentioned that fact.


> You need the address of the variable that was passed to SendInteger.
> Obviously, there is no way the compiler can know that.


In that case I have no more use cases for the "name of var" feature. :)



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/




More information about the fpc-pascal mailing list