What's left for 1.0?

Stewart Gordon smjg_1998 at yahoo.com
Tue Nov 28 14:43:15 PST 2006


Bill Baxter wrote:
> 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?

I can indeed.  And indeed, trying to autotype such a thing should 
certainly be an error.

http://d.puremagic.com/issues/show_bug.cgi?id=52

Stewart.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:-@ C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS- 
PE- Y? PGP- t- 5? X? R b DI? D G e++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox.  Please keep replies on 
the 'group where everyone may benefit.



More information about the Digitalmars-d mailing list