[fpc-pascal] specify variable name with string variable
dhkblaszyk at gmail.com
Mon Jul 8 17:31:35 CEST 2019
> This might sound silly, but is it possible to somehow specify a variable
> with a string containing the name of the variable?
Yes it certainly is. I wrote a unit that can handle arbitrary variable
types for my project pmake. Pmake it a build tool for pascal.
To set a variable, simply use: set_(“myvar”, 3.141). To read it, use:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal