New operators opStaticIndex and friends

Ahmet Sait nightmarex1337 at hotmail.com
Tue May 14 18:13:18 UTC 2019


On Tuesday, 14 May 2019 at 15:49:51 UTC, Q. Schroll wrote:
> I whish, D has these operators:
>
> opStaticIndex
> opStaticIndexAssign
> opStaticIndexOpAssign
> opStaticSlice

I think this is solving the wrong problem. If compiler provided 
means to check whether a parameter is known at compile time 
easily & consistently these would not be necessary at all. Of 
course, talk is cheap and actually implementing such new __traits 
is rather compilcated.


More information about the Digitalmars-d mailing list