opAssign and const?
Era Scarecrow
rtcvb32 at yahoo.com
Fri May 4 20:50:26 PDT 2012
> On Saturday, 5 May 2012 at 03:32:06 UTC, Jonathan M Davis wrote:
>> ---------
>> Functions are overloaded based on how well the
>> arguments to a function can match up with the
>> parameters. The function with the best match is
>> selected. The levels of matching are:
>>
>> 1. no match
>> 2. match with implicit conversions
>> 3. match with conversion to const
>> 4. exact match
>> ---------
>>
Hmm maybe it should have a preference for Lvalue vs Rvalue...
So... Walter or Andrei?
1. no match
2. match with implicit conversions (Lvalue required)
3. match with conversion to const (Lvalue required)
4. match with implicit conversions
5. match with conversion to const
6. exact match
More information about the Digitalmars-d-learn
mailing list