That is doing the opposite of what you want. The assignment operator (=) takes whatever the right side evaluates to (in other cases it could be a more complicated formula) and places it in the memory location on the left side.
What you have is saying, “assign b to a” or “take the contents of b and store it in a”. I think the “assign” terminology is a little obtuse, but it is what it is.