(j3.2006) (SC22WG5.5170) [ukfortran] [ Draft corrigendum 3]

Malcolm Cohen malcolm
Tue Dec 24 03:59:59 EST 2013


...
>The argument is that computed GO TO ought to be replaced by SELECT CASE.
>Well, the code is a coroutine.

I think this is precisely the case when computed GOTO is superior to SELECT 
CASE.

>I'm afraid to make a massive reorganization of it, for fear that it will
>be ten years before we discover the bugs thereby introduced.

Any reorganised version would almost certainly not be better-structured, and 
might well be significantly worse-structured.  I would leave it alone if I were 
you!

>Are there still any structuring engines available?

NAG used to sell one, but not at the moment.  I don't think it would have helped 
with this particular problem anyway though.

Cheers,
-- 
................................Malcolm Cohen, Nihon NAG, Tokyo. 




More information about the J3 mailing list