Skip to content

Commit

Permalink
Change lowering of A .= x to match fused RHS cases
Browse files Browse the repository at this point in the history
Now instead of lowering to `broadcast!(identity,A,x)`, it lowers to `Broadcast.materialize!(A, Broadcast.broadcasted(identity, x))`, with all names resolved in the top module.
  • Loading branch information
mbauman committed Apr 25, 2018
1 parent edd4dcf commit 18ad6a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@
; expanded to something else (like a getfield)
(if (null? lhs)
(expand-forms e)
(expand-forms `(call (top broadcast!) (top identity) ,lhs-view ,e))))))
(expand-forms `(call (|.| (top Broadcast) 'materialize!) ,lhs-view (call (|.| (top Broadcast) 'broadcasted) (top identity) ,e)))))))


(define (expand-where body var)
Expand Down

0 comments on commit 18ad6a8

Please sign in to comment.