[Issue 14935] [Operator Overloading] Wrong description on overloading a[]

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Aug 19 06:57:38 PDT 2015


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

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from ag0aep6g at gmail.com ---
(In reply to Ryuichi OHORI from comment #4)
> Ah, it seems I mis-minimized my code using older ones in
> http://dpaste.dzfl.pl/
> Here is an example 2.065 doesn't compile: 
> http://dpaste.dzfl.pl/fork/d52a0e0a2163
> I'm not sure but I was getting the same error....

So the code works for you with a recent compiler (2.067, 2.068)?

I think code in the online docs doesn't need to be compatible with 2.065. So
I'm closing this as invalid. Please reopen if the code doesn't work for you
with 2.068, or generally if you disagree with me closing.

If you're getting that "cannot be sliced with []" error with different, valid
code, then please file a new bug.

--


More information about the Digitalmars-d-bugs mailing list