2.067 Beta: Behavior of enum and ref changed

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Mar 10 11:05:39 PDT 2015


On 03/10/2015 01:37 AM, Jonathan M Davis via Digitalmars-d-learn wrote:

 > However, the code in question still shouldn't compile because while a 
Bits
 > variable may be implicitly convertible to ulong, it _isn't_ a ulong,

In other words, the result of the implicit conversion is an rvalue, 
created on the spot, not the actual lvalue. References cannot be bound 
to rvalues.

Ali



More information about the Digitalmars-d-learn mailing list