[Issue 7753] Support opIndexCreate as part of index operator overloading in user-defined types

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu May 28 01:59:21 PDT 2015


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

--- Comment #5 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> ---
Whoa, this feature is weird indeed. Given the declaration int[int][int] a;
a[0][0]=0 shouldn't work because the AA has no entry with key 0, so a[0] should
throw RangeError similar to how b=a[0] throws RangeError.

--


More information about the Digitalmars-d-bugs mailing list