goto a no-go?

Jos van Uden usenet at fwend.com
Tue Oct 1 05:30:29 PDT 2013


On 1-10-2013 13:22, Chris wrote:

>Is it ok or even necessary to use goto in D?

I doubt it's necessary but it can be useful sometimes. In the Markov
algorithm at Rosetta code I used it to restart a loop, including
reinitializing a variable. I'm sure it could have been done without
goto but it was convenient.

http://rosettacode.org/wiki/Markov_Algorithm#D



More information about the Digitalmars-d mailing list