Function Overloading

Salih Dincer salihdb at hotmail.com
Thu Nov 2 11:17:42 UTC 2023


On Wednesday, 1 November 2023 at 20:04:52 UTC, Basile B. wrote:
>
> Yes. D constructors are not named but the current 
> implementation adds a name that is `__ctor`, so add
>
> ```d
> alias add = __ctor;
> ```
>
> to you struct.
>

Yeah, it works! Thanks...:)

SDB at 79


More information about the Digitalmars-d-learn mailing list