[Issue 7260] "g" on default in std.regex

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 10 12:38:46 PDT 2013


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



--- Comment #9 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2013-03-10 12:38:45 PDT ---
(In reply to comment #8)

> 
> Then once "g" is off we could either make .all a nop.
> 
> Alternative is to make it opaque object that has 2 methods only .first/.all.
> 
> The third alternative to add alias this to make .first implicit. I feel it
> won't work reliably with range-based templates as it would make it "2 ranges in
> one".
> 
> So only the first 2 are viable. I'd go with 1st that gets upgraded to the
> second once people forget about "g" switch entierly.

Typo - I've meant make it an opaque object then sometime later turn .all
implicitly. It would still have potential to break code so it seems that just
make .all implicit is better.

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