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

    156 This symbol := is an assignment operator in Python (mostly called as the Walrus Operator). In a nutshell, the walrus operator compresses our code to make it a little shorter. Here's a very simple …

  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. assignment operator - What's the difference between `=` and `<-` in R ...

    Except for operator precedence, the <- and = assignment operators are completely identical by default. R complicates matters by giving = a secondary syntactic meaning, besides its use as an assignment …

  4. 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 …

  5. 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?

  6. 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.

  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 are assignment expressions (using the "walrus" or ":=" operator ...

    117 Since Python 3.8, code can use the so-called "walrus" operator (:=), documented in PEP 572, for assignment expressions. This seems like a really substantial new feature, since it allows this form of …

  9. 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 …

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

    Nov 13, 2018 · 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 = …