Skip to content

Commit

Permalink
work around "invalid let syntax"
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeits committed Sep 21, 2017
1 parent 925b1f5 commit 1096b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/manipulate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

0 comments on commit 1096b03

Please sign in to comment.