beltoforion/muparser

Using period in a variable.name

ishovkun opened this issue · 2 comments

Is there any way to use a period "." in a variable name?

I am trying to define a variable as follows:

mu::Parser parser;
double value;
parser.DefineVar("inputs.poro", &value);

and I'm getting the following exception:
Invalid function-, variable- or constant name: "".

Try adding it to the characters allowed in variable names like described here:
https://beltoforion.de/en/muparser/interface.php#idDefCharset

It worked! Thank you!