From 1096b03b2bc49999487597588c20d128731d9d33 Mon Sep 17 00:00:00 2001 From: Robin Deits Date: Thu, 21 Sep 2017 12:01:06 -0400 Subject: [PATCH] work around "invalid let syntax" --- src/manipulate.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manipulate.jl b/src/manipulate.jl index 8c66ee1..8740879 100644 --- a/src/manipulate.jl +++ b/src/manipulate.jl @@ -16,7 +16,7 @@ end function map_block(block, symbols) lambda = Expr(:(->), Expr(:tuple, symbols...), block) - :(preserve(map($(esc(lambda)), $(map(s->:(signal($s)), esc.(symbols))...), typ=Any))) + :($preserve(map($(lambda), $(map(s->:($signal($s)), symbols)...), typ=Any))) end function symbols(bindings) @@ -37,6 +37,6 @@ macro manipulate(expr) syms = symbols(bindings) Expr(:let, Expr(:block, display_widgets(syms)..., - map_block(block, syms)), + esc(map_block(block, syms))), map(make_widget, bindings)...) end