Nov 30, 2007 at 2:21 PM
Hi, as i see in the examples section this code defines a new expression for the Calculation Engine:

context.ExpressionName = "a";
ExpressionFactory.CreateDynamic("x * 2", context);

This defines a expression named "a" wich is definition is "x * 2" ??

This means that ExpressionFactory.CreateDynamic(exp, context);

Creates and expression with the last name setted before in context.ExpressionName ?

If this is like that, can i ask why ? i think is kind of ugly, i would like to code and read something like

context.CreateDynamic("a", "x * 2");
engine.CreateDynamic("a", "x * 2");

or any other that implies the name and the expression in the same sentence.

And to avoid errors of overwrite expression and "unnamed" expressions

There is something im missing ?

Dec 4, 2007 at 3:22 AM
Yeah, it is ugly :) I'm going to change it in the next release.