DMD 0.148 - scope guard

Walter Bright newshound at digitalmars.com
Mon Feb 27 10:24:31 PST 2006


"Bruno Medeiros" <daiphoenixNO at SPAMlycos.com> wrote in message 
news:dtvcoj$225e$1 at digitaldaemon.com...
> Walter Bright wrote:
>> "Derek Parnell" <derek at psych.ward> wrote in message 
>> news:op.s5j942tp6b8z09 at ginger.vic.bigpond.net.au...
>>> Does 'scope' mean any type scope, and not just function scope? For 
>>> example, can it include module scope? ... if/while/for/foreach scope? 
>>> ... block scope?
>>
>> Yes.
>>
>
> On module scope? No, it doesn't actually work on module scope, right? 
> Wouldn't make sense, as a module scope is a declaration scope, and not a 
> instruction scope/block.

That's right. You can't have statements in module scope, so there's no way 
to apply it to module scope. Or class scope. Or any other place where 
statements are not allowed. 





More information about the Digitalmars-d mailing list