Julia Programming Language
Overload addition assignment += operator
New to Julia
stevengj
September 17, 2019, 2:10am
2
x += y
is a synonym for
x = x + y
in Julia, so you can’t overload it.
1 Like
A = A .+ 1 yields different type than A .+= 1; why?
show post in topic
Related topics
Topic
Replies
Views
Activity
How to overload +=?
General Usage
8
417
November 15, 2021
+= operator
General Usage
12
666
May 5, 2023
Overload in place =
General Usage
question
,
base
5
275
June 14, 2023
Overloading update operators
New to Julia
question
14
1807
December 18, 2018
Difference between += and .+=
New to Julia
5
1853
October 6, 2022