Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent empty statements at the end of --eval or --loop code
This patch replaces the old ad-hoc generation of `--eval` or `--loop` program code with calls to the new `makeEvalCode` function. Besides improving separation of concerns, this also ensures that the generated code will never have a trailing blank statement (i.e. two `;` separated at most by whitespace). This should prevent issues when using `--eval` or `--loop` with a `--compiler` choice that is fussy about such things; see dlang#297 (comment) for an example.
- Loading branch information