Cryptic Error message with scope(failure) and AA
Ali Çehreli
acehreli at yahoo.com
Sat Jun 29 16:44:15 PDT 2013
On 06/29/2013 02:26 PM, monarch_dodra wrote:
> DMD is on to something, because if you replace failure with "exit" or
> "success", then it complains with: "Error: continue is not inside a loop".
Hmmm... 'continue' and others are disallowed only for scope(exit) and
scope(success):
http://dlang.org/statement.html#ScopeGuardStatement
"A scope(exit) or scope(success) statement may not exit with a throw,
goto, break, continue, or return; nor may it be entered with a goto."
Ali
More information about the Digitalmars-d-learn
mailing list