Is there an "eval()" routine in DWScript?

Issue #148 wontfix
Former user created an issue

Hi. Is there a script instruction that allows, within a script, to execute generic code in the form of a string? To be clear, like the instruction "eval()" in Javascript. Bye.

Comments (2)

  1. Eric Grange repo owner

    The facility for evaluation is present in dwsEvaluate unit.

    It is not exposed to the script, however you could expose it in a custom TdwsUnit for instance, though eval() has various security and execution complexity implications (which is why it's not exposed by default).

  2. Log in to comment