math evaluation on runtime
H. S. Teoh
hsteoh at quickfur.ath.cx
Tue Apr 8 13:35:15 PDT 2014
On Tue, Apr 08, 2014 at 08:18:41PM +0000, Szabo Bogdan wrote:
> Hi,
>
> There is any way to evaluate simple math strings like this one: "(1 +
> 2) * 3" and pass the result?
[...]
If you want this at runtime, you'd have to write your own expression
parser. At compile-time, you can use a mixin.
T
--
It said to install Windows 2000 or better, so I installed Linux instead.
More information about the Digitalmars-d-learn
mailing list