Skip to content

Commit

Permalink
slightly cut down lowered code for kwcall
Browse files Browse the repository at this point in the history
Conflicts:
	src/julia-syntax.scm
  • Loading branch information
JeffBezanson committed Oct 20, 2014
1 parent c848545 commit 6290d34
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1489,10 +1489,13 @@
`(block (= (tuple ,k ,v) ,rk)
,push-expr))))
restkeys))
(if (call (top isempty) ,container)
(call ,f ,@pa)
(call (top kwcall) ,f ,(length keys) ,@keyargs
,container ,@pa))))))))
,(let ((kw-call `(call (top kwcall) ,f ,(length keys) ,@keyargs
,container ,@pa)))
(if (not (null? keys))
kw-call
`(if (call (top isempty) ,container)
(call ,f ,@pa)
,kw-call)))))))))

(define (expand-transposed-op e ops)
(let ((a (caddr e))
Expand Down

0 comments on commit 6290d34

Please sign in to comment.