Magnus Lie Hetland <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #1 from Magnus Lie Hetland <> 2011-03-31 07:09:07 
PDT ---
I have similar problems with stuff like this:

import std.stdio, std.regex;
void main() {
    foreach (m; match("abc", "a|(x)")) {
        foreach (e; m.captures) {

Here it prints out "a" and then I get a range violation. Whether or not
m.captures[1] exists, iterating over m.captures should be possible?

Also: Checking whether m.captures[1] exists would be highly useful -- to see
what has matched. (Doing this by length wouldn't work in general, of course.)

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to