Address of overloaded functions
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Jul 3 13:44:05 PDT 2013
On Wed, Jul 03, 2013 at 10:10:08PM +0200, Artur Skawina wrote:
> On 07/03/13 21:02, H. S. Teoh wrote:
> > On Wed, Jul 03, 2013 at 06:52:56PM +0200, Artur Skawina wrote:
> >> void main()
> >> {
> >> auto b = pickOverload!(foo, long);
> >
> > Now *that's* what I call coolness. Self-documenting and convenient
> > to use (though in this case it's arguable whether it's actually
> > better than native syntax).
>
> At some point somebody is going to ask for
>
> auto b = foo.pickOverload!(long)
>
> with a better name for 'pickOverload'. :)
>
>
> Which actually is possible, but would need sane optional-() and
> UFCS models. Ie not right now.
[...]
I don't think UFCS applies to compile-time arguments? So this wouldn't
work.
T
--
There's light at the end of the tunnel. It's the oncoming train.
More information about the Digitalmars-d-learn
mailing list