overloading of '=' works
This commit is contained in:
parent
78f371c03a
commit
05e39cf6ad
9 changed files with 147 additions and 6 deletions
|
|
@ -22,7 +22,7 @@ operator `=`
|
|||
------------
|
||||
|
||||
This operator is the assignment operator. Note that in the contexts
|
||||
like ``result = expr``, ``parameter = defaultValue`` or for
|
||||
``result = expr``, ``parameter = defaultValue`` or for
|
||||
parameter passing no assignment is performed. For a type ``T`` that has an
|
||||
overloaded assignment operator ``var v = T()`` is rewritten
|
||||
to ``var v: T; v = T()``; in other words ``var`` and ``let`` contexts do count
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue