Skip to content

Commit

Permalink
fix #2378
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Feb 24, 2013
1 parent 18a9e5c commit 4076e2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions base/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function eval_user_input(ast::ANY, show_value)
println()
iserr, lasterr = false, ()
else
ast = expand(ast)
value = eval(Main,ast)
global ans = value
if !is(value,nothing) && show_value
Expand Down
5 changes: 4 additions & 1 deletion src/jlfrontend.scm
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@
(parser-wrap (lambda ()
(let* ((inp (make-token-stream (open-input-string s)))
(expr (julia-parse inp)))
(expand-toplevel-expr expr)))))
;; delay expansion so macros run in the Task executing
;; the input, not the task parsing it (issue #2378)
expr
#;(expand-toplevel-expr expr)))))

;; parse file-in-a-string
(define (jl-parse-string-stream str)
Expand Down

0 comments on commit 4076e2b

Please sign in to comment.