[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:25:50 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=602
--- Comment #16 from Stewart Gordon <smjg at iname.com> 2013-11-19 16:25:39 PST ---
(In reply to comment #15)
> Designing D (or its front-end implementation) to make it more difficult for
> future D compiler writers to implement compiled gotos (that are currently
> supported by the back-end of both GCC and Clang, so someone could add them to
> LDC2 or GDC without too much work) is silly.
Nobody here suggested designing D *to* make it more difficult for future D
compiler writers to implement anything. The point is that D has been designed
to have initialisations and RAII, and as a side effect it is difficult to
implement assigned/computed gotos.
Sacrificing these useful features just to make it easier to implement such a
feature that will be rarely used (not least because of the inherent
unportability resulting from leaving it to third-party extensions) would be
silly.
--
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