Re: Explain function syntax

2025-09-21 Thread user1234 via Digitalmars-d-learn
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. B

Re: Explain function syntax

2025-09-21 Thread Steven Schveighoffer via Digitalmars-d-learn
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: What is a function type? It's the internal type that the compiler has for a function, which you actually cannot express in syntax. Actually D has a syntax

Re: Explain function syntax

2025-09-21 Thread user1234 via Digitalmars-d-learn
On Saturday, 20 September 2025 at 02:36:47 UTC, Steven Schveighoffer wrote: What is a function type? It's the internal type that the compiler has for a function, which you actually cannot express in syntax. Actually D has a syntax to expression function types: ```d alias FT = void(int); void