Consensus on goto's into catch blocks

Timon Gehr timon.gehr at gmx.ch
Fri Jun 14 16:49:34 PDT 2013


On 06/14/2013 08:44 PM, Walter Bright wrote:
> On 6/13/2013 2:08 PM, monarch_dodra wrote:
>> Well, I guess as long as the compiler (optionally) supports skipping over
>> initialization it means it can handle the magic required to maintain
>> the stack
>> pointer, so that shouldn't really be a problem.
>
> Sometimes it is handy to skip initializations, and I get annoyed with
> g++ barfs on me doing that. That said, such should only be allowed in
> @system code.
>
> On a related note, doing a goto into a finally block is pretty
> problematic to support because it's actually a mini-function.

In the worst case, duplicate some code.


More information about the Digitalmars-d mailing list