function overloading of address

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 2 18:40:45 PST 2014


On Wed, Dec 03, 2014 at 04:31:11AM +0200, ketmar via Digitalmars-d wrote:
> On Tue, 2 Dec 2014 18:18:26 -0800
> "H. S. Teoh via Digitalmars-d" <digitalmars-d at puremagic.com> wrote:
[...]
> > How do you take the address of specific overload, though?
>
> declare the necessary function type instead of auto:
> 
>   void function (int) pfoo = &foo;

Ah, of course. I'm getting too used to type inference. :-P


T

-- 
If you look at a thing nine hundred and ninety-nine times, you are perfectly safe; if you look at it the thousandth time, you are in frightful danger of seeing it for the first time. -- G. K. Chesterton


More information about the Digitalmars-d mailing list