pallet / alembic

A library for distilling (resolving and adding to the classpath) dependencies
255 stars 13 forks source link

Bind printing dynamic vars around evals #12

Open hanshuebner opened 9 years ago

hanshuebner commented 9 years ago

Alembic uses classlojure's eval in a number of places, but that fails with printing related dynamic variables bound to non-standard values as that can cause code to be incompletely rendered into strings. This patch fixes the problem by re-binding all (?) print related dynamic variables to their standard values before invoking classlojure's functions.