Explain function syntax
user1234
user1234 at 12.de
Mon Sep 22 00:43:30 UTC 2025
On Monday, 22 September 2025 at 00:27:09 UTC, Steven
Schveighoffer wrote:
> On Sunday, 21 September 2025 at 20:33:11 UTC, user1234 wrote:
>> On Saturday, 20 September 2025 at 02:36:47 UTC, Steven
>> Schveighoffer wrote:
> Looking at historical compilers, the `alias ... =` syntax was
> added in 2.087.0. But before then, you could also do it like:
>
> ```d
> alias void FT(int);
> ```
>
> Which gives me so much C vibes...
>
> -Steve
You're right, I forgot that detail. The change in 2.087 was made
exactly because there's was no equivalent for the `alias =`
syntax.
More information about the Digitalmars-d-learn
mailing list