[Issue 7753] Support opIndexCreate as part of index operator overloading in user-defined types
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri May 29 04:25:17 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=7753
Martin Nowak <code at dawg.eu> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu
--- Comment #6 from Martin Nowak <code at dawg.eu> ---
Igor Stepanov suggested [¹] an opIndex extension.
ref Foo opIndex(bool lvalue)(size_t idx)
Where the compiler would call opIndex!true when an lvalue is required and
opIndex!false when an rvalue suffices.
[¹]: http://forum.dlang.org/post/vorfqumugibjcztdrezb@forum.dlang.org
--
    
    
More information about the Digitalmars-d-bugs
mailing list