[Issue 7177] $ should forward to length by default
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 21 08:27:17 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7177
--- Comment #18 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-03-21 08:27:16 PDT ---
> That's a strong case. If compiler tries to translate $ to length
> automatically, library AA implementation will become impossible.
That's not a problem at all. As long as the logic is that length is aliased to
opDollar as long as opDollar isn't defined, then it won't break anything.
Anything that needs to define opDollar differently will define opDollar, and
for the rest, if they define length, then it gets aliased to opDollar. I really
don't see the problem with that. And without this, requiring opDollar with
hasSlicing will break tons of code.
--
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