Python eval() equivalent in Dlang working in Runtime?
tsbockman
thomas.bockman at gmail.com
Fri May 1 17:44:27 UTC 2020
On Friday, 1 May 2020 at 15:42:54 UTC, Baby Beaker wrote:
> There is a Python eval() equivalent in Dlang working in Runtime?
No, and there almost certainly never will be due to fundamental
differences between the languages. Depending on your goal, the
closest alternatives are using the string mixin language feature,
writing a parser (std.conv or certain DUB packages can help), or
embedding a scripting engine such as AngelScript or Squirrel into
your program.
What are you really trying to do?
More information about the Digitalmars-d-learn
mailing list