[Issue 16302] Add opStaticIndex that takes compile-time indices

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri May 12 21:13:39 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=16302

Yuxuan Shui <yshuiv7 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yshuiv7 at gmail.com

--- Comment #6 from Yuxuan Shui <yshuiv7 at gmail.com> ---
(In reply to Steven Schveighoffer from comment #4)
> I really would like to see this, and it's pretty straightforward how it
> would look, so I will write a DIP to see if there is interest.

I want to suggest we just reuse opIndex. If opIndex is defined as a template,
the static semantic is used.

--


More information about the Digitalmars-d-bugs mailing list