Skip to content

Commit

Permalink
Updated to Java commit 535907e (2011-10-26): propagate ^:dynamic to d…
Browse files Browse the repository at this point in the history
…ynamically declared vars when first encountered
  • Loading branch information
dmiller committed Nov 17, 2011
1 parent bd5bce2 commit 2f26ab2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Clojure/Clojure/CljCompiler/Ast/DefExpr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ public Expr Parse(ParserContext pcon, object form)

IPersistentMap mm = sym.meta();
bool isDynamic = RT.booleanCast(RT.get(mm, Compiler.DynamicKeyword));
if (isDynamic)
v.setDynamic();
if (!isDynamic && sym.Name.StartsWith("*") && sym.Name.EndsWith("*") && sym.Name.Length > 1)
{
RT.errPrintWriter().WriteLine("Warning: {0} not declared dynamic and thus is not dynamically rebindable, "
Expand Down

0 comments on commit 2f26ab2

Please sign in to comment.