Is there any way to have [] overloads use compile-time indexes as is currently done for Tuples?
Basile B. via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 27 05:45:39 PDT 2016
On Tuesday, 27 September 2016 at 09:21:04 UTC, pineapple wrote:
> I'd really like to define my own types that accept indexes for
> opIndex and opSlice as template arguments. Is there any way to
> do this? If not, this seems like an obvious thing to add to the
> language - what's been holding it back?
https://issues.dlang.org/show_bug.cgi?id=16302
More information about the Digitalmars-d-learn
mailing list