What's left for 1.0?

Bill Baxter dnewsgroup at billbaxter.com
Sun Nov 19 15:56:08 PST 2006


BCS wrote:
> Bill Baxter wrote:
>> So, what's left on everyone's lists for D1.0 must-have features?
>>
>> I glanced over the "Pending Peeves" list, but none of those things 
>> seems particularly serious to me.
>>
>> What about the iterators?  Mostly that can be a library thing that 
>> comes after the 1.0 release, but it would be nice if foreach at least 
>> had the smarts built-in to use an iterator once the method names are 
>> decided upon.
>>
>> --bb
> 
> There is no way to differentiate between function overloads.
> 
> 
> int foo(){ return 0;}
> int foo(int i){ return 0;}
> 
> 
> int bob()
> {
>         // foo() or foo(int)?
>     auto fn = &foo;
>     auto tmp = TemplateTakingFn!(foo);
> }

That should probably be an "error: ambiguous" if it isn't already, but 
anyway can't you do   'int function() fn = &foo' to get the one you want?

--bb



More information about the Digitalmars-d mailing list