https://d.puremagic.com/issues/show_bug.cgi?id=602
--- Comment #14 from Stewart Gordon <[email protected]> 2013-11-19 14:33:07 PST --- (In reply to comment #12) > (In reply to comment #10) >> Since when has D (or any compiled language, for that matter) >> supported computed gotos? > > Maybe you've heard of gcc? > > http://gcc.gnu.org/onlinedocs/gcc-3.1.1/gcc/Labels-as-Values.html An interesting feature. But even in C++ I can't see it working correctly, what with construction/destruction of objects that go into/out of scope to consider. In D, this would apply to scope objects in the same way. Remember that D supports goto only as a concession to programmers who want to break the rules of structured programming for efficiency reasons. I think it goes without saying that the onus is on any D compiler writer who chooses to add such a feature as computed goto to figure out how to get all this working. What next - somebody decides to create D extensions for writing self-modifying code? -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
