Implementation
In interpreted languages, eval
is almost always implemented with the same interpreter as normal code. In compiled languages, the same compiler used to compile programs may be embedded in programs using the eval
function; separate interpreters are sometimes used, though this results in code duplication.
Read more about this topic: Eval