cast(A)b is not an lvalue
    Namespace 
    rswhite4 at googlemail.com
       
    Wed Dec 26 09:05:53 PST 2012
    
    
  
> I can answer the question in the subject line without looking 
> at dpaste: Yes, in many cases the result of a cast operation is 
> an rvalue. It is a temporary that is constructed at the spot 
> for that cast operation.
>
> Imagine casting an int to a double. The four bytes of the int 
> is nowhere close to what the bit representation of a double is, 
> so a double is made at the spot.
>
> Ali
My question is: Should not work all three?
IMO: yes.
    
    
More information about the Digitalmars-d-learn
mailing list