Favorite bug?

BCS ao at pathlink.com
Mon Jul 2 10:54:47 PDT 2007


Reply to Craig,

> "Bill Baxter" <dnewsgroup at billbaxter.com> wrote in message
> news:f6asup$2sjh$1 at digitalmars.com...
> 
>> Brad Roberts wrote:
>> #52 for me.
>> Referring to a function by name only gets you the first version that
>> appears lexically.  No warning about conflicting overloads.
>> Unfortunately I also dread seeing this one fixed, because I suspect
>> the fix is going to be just to make it an error, and/or require
>> casting to the exact version you want with a monstrosity like:
>> 
>> cast(return_type function(int,double,char[]) &fn
>> 
> It would be ideal if it was interpreted as a special type of function
> pointer that knows about all the overloads, and then identifies the
> exact overload when it is assigned.  That would be cool.
> 

how about &fn give you a tuple?





More information about the Digitalmars-d mailing list