[Issue 7177] $ should forward to length by default

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 21 07:50:49 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=7177



--- Comment #15 from Kenji Hara <k.hara.pg at gmail.com> 2013-03-21 07:50:48 PDT ---
(In reply to comment #14)
> Another example is int[int]:
> 
> int[int] x;
> x[1] = 14;
> x[100] = 42;
> assert(x[$-1] == 14);

That's a strong case. If compiler tries to translate $ to length automatically,
library AA implementation will become impossible.

I'll close my pull request.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list