Ana Kedi
Ivan Kazmenko
gassa at mail.ru
Tue Aug 16 10:08:39 UTC 2022
On Tuesday, 16 August 2022 at 06:16:23 UTC, bauss wrote:
> On Monday, 15 August 2022 at 16:34:29 UTC, Ivan Kazmenko wrote:
>> Note that the `{}` for compile-time features (such as
>> `version`, `debug` or `static if`) don't introduce a new scope.
>>
>> Ivan Kazmenko.
>
> debug creates a new scope.
Hmm, on the contrary, this works for me (dmd 2.0.100):
```
debug {int i;}
else {long i;}
pragma (msg, typeof (i));
void main () {i = 2;}
```
Ivan Kazmenko.
More information about the Digitalmars-d
mailing list