Skip to content

Commit

Permalink
fixing #547, make iteration vars local to comprehensions
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Mar 10, 2012
1 parent ee55e00 commit 2c78705
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,7 @@
`(scope-block
(block
(local ,oneresult)
,@(map (lambda (r) `(local ,(cadr r))) ranges)
,@(map (lambda (v r) `(= ,v ,(caddr r))) rv ranges)
;; the evaluate-one code is used by type inference but does not run
(if (call (top !) true) ,(evaluate-one loopranges))
Expand Down

0 comments on commit 2c78705

Please sign in to comment.