UFCS (Was: Re: Arbitrary abbreviations in phobos considered ridiculous)

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Mar 9 15:54:30 PST 2012


On Fri, Mar 09, 2012 at 04:30:11PM -0700, Brad Anderson wrote:
> On Fri, Mar 9, 2012 at 4:24 PM, Jonathan M Davis <jmdavisProg at gmx.com>wrote:
[...]
> > I don't know what the current state of UFCS is. I know that Kenji
> > has been working on it and that at least some portion of it has been
> > checked in, but what exactly it enables at this point, I don't know.
[...]
> Here are the unittests he added if you are curious about what
> currently works in dmd HEAD:
> https://github.com/D-Programming-Language/dmd/blob/master/test/runnable/ufcs.d

Wow, 2.5.twice==5.0 works now? So does 2.5.sqrt()! And pseudo-members
for structs!  And classes!  Amazing!  Kudos to Kenji!


T

-- 
Question authority. Don't ask why, just do it.


More information about the Digitalmars-d mailing list