Real World usage of D, Today (was Re: challenge #2: implement the varargs_reduce metafunction)
Bill Baxter
dnewsgroup at billbaxter.com
Thu Jan 25 00:17:05 PST 2007
Andrei Alexandrescu (See Website For Email) wrote:
> 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
It's in there.
http://d.puremagic.com/issues/show_bug.cgi?id=52
--bb
More information about the Digitalmars-d
mailing list