[Issue 602] Compiler allows a goto statement to skip an initalization

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 19 16:54:28 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=602



--- Comment #17 from bearophile_hugs at eml.cc 2013-11-19 16:54:20 PST ---
(In reply to comment #16)

> D has been designed
> to have initialisations and RAII, and as a side effect it is difficult to
> implement assigned/computed gotos.

I think G++ and Clang support computed gotos in C++, that has RAII.

Generally when you use computed gotos, you are writing low level special code,
so the programmer should be trusted. So some unsafety is acceptable when you
use computed gotos.


> (not least because of the inherent
> unportability resulting from leaving it to third-party extensions)

I asked for computed gotos in D, and failing that I have asked for something
less, to avoid the un-portability, I didn't even receive an answer from Walter:

http://www.digitalmars.com/d/archives/digitalmars/D/Explicitly_unimplemented_computed_gotos_122904.html

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list