[Issue 6383] Unpacking from dynamic array, lazy ranges
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 30 08:37:01 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6383
Dmitry Olshansky <dmitry.olsh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dmitry.olsh at gmail.com
--- Comment #2 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2011-07-30 08:36:58 PDT ---
(In reply to comment #1)
> Sorry, this is not correct:
>
> auto (start,end) = array(match(r, r"^(-?\d+)(-?(-?\d+))?$").captures);
> auto (start,end) = match(r, r"^(-?\d+)(-?(-?\d+))?$").captures;
I'm puzzled, in this case captures contain way more then 2 strings:
0 - whole match
1 - (-?\d+)
2 - (-?(-?\d+))?
3 - (-?\d+)
--
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