Top "Assignment-operator" questions

The operator used when one object is assigned to another

Shortcut "or-assignment" (|=) operator in Java

I have a long set of comparisons to do in Java, and I'd like to know if one or more …

java assignment-operator compound-assignment or-operator
PHP's =& operator

Are both these PHP statements doing the same thing?: $o =& $thing; $o = &$thing;

php assignment-operator
Is it possible to overload Python assignment?

Is there a magic method that can overload the assignment operator, like __assign__(self, new_value)? I'd like to forbid …

python class methods assignment-operator magic-methods
Multiple assignment and evaluation order in Python

What is the difference between the following Python expressions: # First: x,y = y,x+y # Second: x = y y = x+…

python variable-assignment assignment-operator multiple-assignment
Why must the copy assignment operator return a reference/const reference?

In C++, the concept of returning reference from the copy assignment operator is unclear to me. Why can't the copy …

c++ operator-overloading copy-constructor assignment-operator
What is the difference between += and =+ C assignment operators

I was wondering if there was a difference between =+ and += (and other assignment operators too). I tried and both did …

c assignment-operator compound-assignment
Reference assignment operator in PHP, =&

What does the =& (equals-ampersand) assignment operator do in PHP? Is it deprecated?

php operators assignment-operator
What's the use of the private copy constructor in c++

Why do people define a private copy constructor? When is making the copy constructor and the assignment operator private a …

c++ copy-constructor assignment-operator
what is return type of assignment operator?

I am just starting C++. I am a bit confused about the return type of assignment and dereference operator. I …

c++ reference assignment-operator dereference lvalue
Understanding exactly when a data.table is a reference to (vs a copy of) another data.table

I'm having a little trouble understanding the pass-by-reference properties of data.table. Some operations seem to 'break' the reference, and …

r reference copy data.table assignment-operator