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

--- Comment #7 from Martin Nowak <[email protected]> ---
(In reply to Martin Nowak from comment #6)
> Igor Stepanov suggested [ยน] an opIndex extension.
> 
> ref Foo opIndex(bool lvalue)(size_t idx)

A separate opIndexCreate might be better, b/c it allows you to 
have a ref return for one and an rvalue return for the other 
function. It also allows to use those operands as polymorphic 
functions in classes.

--

Reply via email to