> 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. https://github.com/daar/pmake/blob/master/pmake/pmake_variables.pas To set a variable, simply use: set_(“myvar”, 3.141). To read it, use: writeln(val_(“myvar”)). Rgds, Darius
_______________________________________________ fpc-pascal maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
