On Tue, 12 Mar 2013 18:07:42 +0400 Dmitry Olshansky <[email protected]> wrote:
> 12-Mar-2013 17:12, Dmitry Olshansky пишет: > > 12-Mar-2013 14:36, Andrej Mitrovic пишет: > >> On 3/12/13, Dmitry Olshansky <[email protected]> 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 ?
