scope(exit) considered harmful

Ellery Newcomer ellery-newcomer at utulsa.edu
Sun Nov 8 06:41:17 PST 2009


Justin Johansson wrote:
> but in the D world beware the Ides of Scopes because if your curly
> brace block with the true/false conditional contains a scope(exit)
> you will get explainable but unexpected behaviour if this code
> is enabled inside an if(true) block.

Elaboration?



More information about the Digitalmars-d mailing list