http://d.puremagic.com/issues/show_bug.cgi?id=7177
--- Comment #47 from Andrei Alexandrescu <[email protected]> 2013-03-24 13:08:46 PDT --- (In reply to comment #46) > (In reply to comment #44) > > 1. hasLength!T || isNarrowString!T, but T does not define a member opDollar. > > this can be shortened to hasLength!T, all strings define $, they are arrays. > The compiler shouldn't be trying to guess whether something is a narrow string > or not according to phobos (or maybe I read this too literally?) Good point, thanks. > The rest of this is not unreasonable, and aside from breaking current code > (albeit less common current code in a non-obvious way), this proposal misses > one situation: you want to define .length, but NOT opDollar. In this case, > @disable opDollar should be allowed (if it's not already) as monarchdodra > suggested. Yah, I was thinking of private or @disable'd symbols as "defined". Good to clarify that. @Kenji, shall we go for this? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
