DIP proposal: Enum parameters

bauss jacobbauss at gmail.com
Tue Sep 27 11:52:03 UTC 2022


On Friday, 23 September 2022 at 15:41:21 UTC, Quirin Schroll 
wrote:
> Read the draft here: 
> https://github.com/Bolpat/DIPs/blob/EnumParameters/DIPs/1NNN-QFS.md
>
> Feedback is welcome.

I am really confused about how it differs from what we have now 
with templates.

Like how is this:

```
auto opSlice()(enum size_t l, enum size_t u) => slice!(l, u);
```

An improvement over:

```
auto opSlice(size_t l, size_t u)() => slice!(l, u);
```

Maybe I am not entirely grasping this concept or something.


More information about the Digitalmars-d mailing list