March 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7260



--- Comment #9 from Dmitry Olshansky <dmitry.olsh@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: -------
August 17, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7260



--- Comment #10 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2013-08-17 05:33:49 PDT ---
The problem now should is addressed by this pull https://github.com/D-Programming-Language/phobos/pull/1470

There is matchAll/matchFirst calls now that are the prefered way to go about
matching. Currently they simply override global flag if present.
Returning to the original example:

foreach (c; text.matchAll("1|2|3|4")) //this spins over captures of each match
        write(c, " ");
writeln();

foreach (c; text.matchFirst("1|2|3|4")) //this spins submatches of 1st match
        write(c, " ");
writeln();

To me there is little else to do aside from slooowly deprecating old flag-based match/replace interface.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 22, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7260


Dmitry Olshansky <dmitry.olsh@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


--- Comment #11 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2013-09-22 01:12:35 PDT ---
Flags are to be gone one day and "g" by default is not going to happen. This IMHO makes it won't fix.

Anyhow the core issue should now be addressed by using new API that is more clear.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
1 2
Next ›   Last »