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

Nick Treleaven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Nick Treleaven <[email protected]> ---
> Press Ctrl-F and type "opSlice", scroll the highlighted text, try and 
> understand how to implement a slicing operator properly. Note that the first 
> contact you see looks like this:
  `-a[i..j]    a.opIndexUnary!("-")(a.opSlice(i, j))`  wat?!

Tweaked unary operator docs so there's now a brief explanation and link to
slice overloading above the lowering table for opIndexUnary:

https://github.com/dlang/dlang.org/pull/3463

--

Reply via email to