What is that "enum function" supposed to be ?
Dukc
ajieskola at gmail.com
Tue Jul 20 11:42:11 UTC 2021
On Tuesday, 20 July 2021 at 10:09:32 UTC, bauss wrote:
>
> You can also do confusing things like this:
>
> ```d
> @safe x = 12;
> ```
>
> D is almost like "just give me whatever, if I can use it then
> I'll use it, if I can't then I'll skip it.
Lol, we could add this to `object.d`:
```d
//meant to save two characters from auto keyword, e.g. you
//can define @a x = 0; instead of auto x = 0;
struct a{}
```
I don't think that'd be a good idea though.
More information about the Digitalmars-d
mailing list