enum functions

Salih Dincer salihdb at hotmail.com
Sun Jan 8 18:45:56 UTC 2023


On Sunday, 8 January 2023 at 18:42:58 UTC, Salih Dincer wrote:
> I accidentally had a function like this:
>
> ```d
>     enum oneHalf(T)(T i) {
>         return i >> 1;
>     }
> ```

Also it seemed odd to me that this could compile!

SDB at 79


More information about the Digitalmars-d-learn mailing list