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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 20 06:08:25 PDT 2016


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

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com

--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Yes, I would love this too. At this point the only way to get compile-time
indexing is by alias this-ing an AliasSeq, as std.typecons.Tuple does.

There's other interesting things, opStaticIndex could accept any type as the
index.

--


More information about the Digitalmars-d-bugs mailing list