Address of overloaded functions
Artur Skawina
art.08.09 at gmail.com
Wed Jul 3 13:10:08 PDT 2013
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.
artur
More information about the Digitalmars-d-learn
mailing list