C++ Ranges proposal for the Standard Library

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 21 04:19:26 PDT 2014


"Timon Gehr"  wrote in message news:m23ng5$4v2$1 at digitalmars.com...

>> Well, not really. It rewrites "for" loops into "goto" loops because
>> that's the only control flow construct implemented by the hardware.
>
> > You might be thinking of the code generator, not the glue layer.
>
> Why? Does the code generator support for loops?

The code cares what the hardware implements, the glue layer does not.  The 
choice of "goto" loops aka basic blocks as the representation in the backend 
is due to ease of analysis, not hardware constraints. 



More information about the Digitalmars-d mailing list