Should scope(exit) be valid outside of a scope?
S
S at S.com
Tue May 11 18:54:59 PDT 2010
On 2010-05-11 17:58:29 -0700, Jesse Phillips said:
> Don wrote:
>
>> If the scope(exit) isn't in a compound statement (ie, if it isn't inside
>> {}), the 'scope' applies only to the statement itself, so that's
>
> ...
>
>> Can we just make it illegal?
>
> I don't see a reason to allow it. I vote error.
It is inside a scope. Not scope(exit)'s fault that you have only it
inside your particular scope (the scope of the if statement). It
could produce a warning....
More information about the Digitalmars-d
mailing list