Fixing the API of std.regex
Nick Sabalausky
SeeWebsiteToContactMe at semitwist.com
Tue Mar 12 08:06:56 PDT 2013
On Tue, 12 Mar 2013 18:07:42 +0400
Dmitry Olshansky <dmitry.olsh at gmail.com> wrote:
> 12-Mar-2013 17:12, Dmitry Olshansky пишет:
> > 12-Mar-2013 14:36, Andrej Mitrovic пишет:
> >> On 3/12/13, Dmitry Olshansky <dmitry.olsh at gmail.com> wrote:
> >>> struct match //ditto for replace
> >>> {
> >>> //current behavior
> >>> static auto opCall(.....);
> >>> }
> >>
> >> For a second I was worried this would break UFCS, but actually it
> >> still works. Pretty kewl.
> >>
> >
> > Actually it does... but only partially:
> >
> [snip]
>
> So with my initial idea being **cked up by UFCS on 'b' in case of
> 'a.b.c' resolution chain.
>
> The problem is not anything new BTW as there is no way to do a fully
> qualified call with UFCS. something.std.ascii.isWhite also won't work.
>
> Darn UFCS. Maybe we can discover some sane rule to cover both corner
> cases?
>
matchFirst
matchAll
matchTest
?
More information about the Digitalmars-d
mailing list