Reverse Lexical Order

Jacob Carlborg doob at me.com
Tue Jul 16 00:19:04 PDT 2013


On 2013-07-16 03:11, H. S. Teoh wrote:

> My understanding is that goto translates directly to a jump in assembly,
> so jumping in/out of blocks with declarations or stuff that needs
> cleanups should immediately raise red flags. Of course, the compiler may
> do something intelligent by inserting implicit stack pointer adjustments
> and/or cleanup blocks, but I wouldn't count on it unless the language
> spec explicitly requires so.

The docs say: "Any intervening finally clauses are executed, along with 
releasing any intervening synchronization mutexes."

http://dlang.org/statement.html#GotoStatement

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list