goto a no-go?

Walter Bright newshound2 at digitalmars.com
Tue Oct 1 11:47:25 PDT 2013


On 10/1/2013 4:22 AM, Chris wrote:
> Or does the compiler recognize _obvious_ cases and generate code
> accordingly? For example would it turn something like this

Actually, the dmd compiler turns ALL control flow into goto statements 
internally, then the optimizer works on that. For example, it reverse engineers 
loops from a graph of basic blocks connected by goto's.


More information about the Digitalmars-d mailing list