pop & popFront combined
    "Nordlöw" via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Sat Nov  1 07:19:55 PDT 2014
    
    
  
On Saturday, 1 November 2014 at 13:54:31 UTC, Nordlöw wrote:
> On Saturday, 1 November 2014 at 13:38:22 UTC, Marc Schütz wrote:
>> If you want to avoid the temporary variable, you could write:
>>
>>    scope(success) r.popFront;
>>    return r.moveFront;
>
> Does this solution cost performance?
I guess we have to look at the assembler output to be sure. Is 
there a convenient way to do this in LDC?
    
    
More information about the Digitalmars-d-learn
mailing list