[Issue 7177] $ should forward to length by default

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 21 09:16:15 PDT 2013


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



--- Comment #21 from Steven Schveighoffer <schveiguy at yahoo.com> 2013-03-21 09:16:14 PDT ---
(In reply to comment #20)
> My point is that I have to opt out of that behavior.  This means it breaks my
> current code.

To expand on this point, I would say implementing opDollar by default to mean
.length should be semantically correct in all existing code that defines
indexing and length.  If not (and I think I've shown that it's not always
correct), it should not be done.  It breaks too much existing code otherwise. 
The gain is so little since aliasing already works.

-- 
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