Preferred Alias Declaration Style

Uknown sireeshkodali1 at gmail.com
Wed Jun 27 14:23:25 UTC 2018


On Wednesday, 27 June 2018 at 14:01:06 UTC, Basile B. wrote:
> On Wednesday, 27 June 2018 at 12:25:26 UTC, Uknown wrote:
>> On Wednesday, 27 June 2018 at 10:22:38 UTC, Vijay Nayar wrote:
>>> [...]
>
> aliasing a function type only works with the old syntax too:
>
>     alias void proto_identifier();
>
> Very unfriendly syntax. Impossible to express with 
> AliasDeclarationY (aka "the new alias syntax").

You can use this syntax for functions :

`alias proto_identifier = void function();`


More information about the Digitalmars-d-learn mailing list