It says: "If a.fun(b, c, d) is seen but fun is not a member of a's type, D rewrites that as fun(a, b, c, d) and tries that as well." So I guess it's possible it won't work with numerical types because they can never have members.
2010/9/1 Philippe Sigaud <philippe.sig...@gmail.com>: > On Wed, Sep 1, 2010 at 20:59, Nick Sabalausky <a...@a.a> wrote: >> >> "Torarin" <torar...@gmail.com> wrote in message>TDPL says it should work >> for any type. >> >http://d.puremagic.com/issues/show_bug.cgi?id=3382 >> >> /me squeals with excitement like a schoolgirl >> >> > Any type, really? Even the basic built-in types, not only class/struct? > That'd fun. > > >