September 10, 2012 Re: since when was this valid syntax? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timon Gehr | On 09/08/2012 09:01 AM, Timon Gehr wrote:
> On 09/08/2012 04:11 PM, Ellery Newcomer wrote:
>> alias enum int e;
>
> It is valid according to the grammar
I don't believe you. Show me the derivation.
|
September 10, 2012 Re: since when was this valid syntax? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ellery Newcomer | On 09/10/2012 07:07 AM, Ellery Newcomer wrote:
> On 09/08/2012 09:01 AM, Timon Gehr wrote:
>> On 09/08/2012 04:11 PM, Ellery Newcomer wrote:
>>> alias enum int e;
>>
>> It is valid according to the grammar
>
> I don't believe you. Show me the derivation.
>
The grammar as shown on dlang.org indeed seems not to allow this, but
it is out of date as it also wouldn't allow
alias extern(C) void function() fun;
|
Copyright © 1999-2021 by the D Language Foundation