function overloading of address
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Tue Dec 2 18:46:07 PST 2014
On Tue, 2 Dec 2014 18:40:45 -0800
"H. S. Teoh via Digitalmars-d" <digitalmars-d at puremagic.com> wrote:
> 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
me too. the first thing i tried was `&foo(0)` to hint the type.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141203/340badc7/attachment.sig>
More information about the Digitalmars-d
mailing list