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
404
November 15, 2021
+= operator
General Usage
12
621
May 5, 2023
Overloading update operators
New to Julia
question
14
1783
December 18, 2018
Overload in place =
General Usage
question
,
base
5
264
June 14, 2023
Is it possible to overload `:=`?
General Usage
5
427
March 4, 2023