Question on static declaration
Maxim Fomin
maxim at maxim-fomin.ru
Sat Jan 11 10:56:45 PST 2014
On Saturday, 11 January 2014 at 17:50:01 UTC, Eric wrote:
> Apparently the line,
>
> static shared static int x;
>
> will compile just fine. Is this sort of a bug,
> or does it mean something different from just
>
> static shared int x;
>
> ?
>
> Also, the line,
>
> static static static int x;
>
> will also compile. Does this mean x is extra static?
>
> -Eric
It is a particular example of current nonsense in attribution
parsing. This compiles:
void main()
{
pure int i;
@disable int di;
nothrow int ni;
}
as well as more sophisticated nonsense. Issue is filed is
bugzilla, so it will be fixed sooner or latter, current policy is
to ignore it.
More information about the Digitalmars-d-learn
mailing list