Real World usage of D, Today (was Re: challenge #2: implement the varargs_reduce metafunction)

Andrei Alexandrescu (See Website For Email) SeeWebsiteForEmail at erdani.org
Wed Jan 24 23:12:21 PST 2007


Bill Baxter wrote:
> Well there is this issue that &foo where foo is an overloaded will give 
> you pointer to the first version of foo in the source file.  There's no 
> way to disambiguate as far as I know.  Particularly frustrating for 
> property methods
> 
>    void prop(float x) { ... }
>    float prop() { ... }
> 
> 
> &prop just gives you the first one no matter what.
> 
> Maybe not what you're talking about with "matching using constants" but 
> it is related to signature matching (or lack thereof).

Ouch. This warrants a bug report. It sure has ripples in lots of 
template code, too.

Andrei



More information about the Digitalmars-d mailing list