Tuple assignment

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun May 10 14:02:36 PDT 2015


On 5/10/2015 1:18 AM, Russel Winder via Digitalmars-d wrote:
> Using LDC, the tuple version generates more code unoptimized, but with
> optimization, the exact same assembly language code is generated for
> the two cases.
>
> Win.

This is what makes D's ranges+algorithms so attractive. They are easier to write 
correct code in, and when optimized produce the same code.


More information about the Digitalmars-d mailing list