About 5,760,000 results
Open links in new tab
  1. What does colon equal (:=) in Python mean? - Stack Overflow

    The code in the question is pseudo-code; there, := represents assignment. For future visitors, though, the following might be more relevant: the next version of Python (3.8) will gain a new operator, :=, …

  2. What are the differences between "=" and "<-" assignment operators?

    What are the differences between the assignment operators = and <- in R? As your example shows, = and <- have slightly different operator precedence (which determines the order of evaluation when …

  3. virtual assignment operator C++ - Stack Overflow

    Mar 21, 2009 · Assignment Operator in C++ can be made virtual. Why is it required? Can we make other operators virtual too?

  4. syntax - What is the := operator? - Stack Overflow

    In all languages that support an operator := it means assignment. In languages that support an operator :=, the = operator usually means an equality comparison. In languages where = means assignment, …

  5. c++ - Class Assignment Operators - Stack Overflow

    Dec 22, 2010 · If your assignment operator needs a check for self-assignment, chances are there's a better implementation. Good implementations (like Copy-And-Swap) don't need that test (which puts …

  6. How to use base class's constructors and assignment operator in C++?

    D(const D& d) { (*this) = d; } D& operator=(const D& d); Do I have to rewrite all of them in D, or is there a way to use B 's constructors and operator? I would especially want to avoid rewriting the assignment …

  7. c++ - Assignment operator inheritance - Stack Overflow

    May 27, 2015 · Derived& operator=(const Derived& a); and this calls the assignment operator from Base. So it's not a matter of inheriting the assignment operator, but calling it via the default …

  8. What is the difference between += and =+ C assignment operators

    In modern C, or even moderately ancient C, += is a compound assignment operator, and =+ is parsed as two separate tokens. = and +. Punctuation tokens are allowed to be adjacent.

  9. c++ - What's the difference between assignment operator and copy ...

    The difference between the copy constructor and the assignment operator causes a lot of confusion for new programmers, but it’s really not all that difficult.

  10. assignment operator overloading in c++ - Stack Overflow

    Sep 24, 2013 · In fact, that is the standard way for an assignment operator. Edit: Note that I am referring to the return type of the assignment operator, not to the implementation itself.