About function keyword

deadalnix deadalnix at gmail.com
Sat Dec 10 14:59:28 PST 2011


Le 10/12/2011 23:42, bearophile a écrit :
> deadalnix:
>
>> in the first case, doNothing is evaluated, even with no () .
>> This function isn't @property, so this behaviour is somehow misleading
>> and error prone.
>
> This needs to change.
>
>
>> When passing a delegate, is(T == delegate) is true, but when passing a
>> function is(T == function) is false. This is also misleading and
>> inconsistent.
>
> This too needs to change. Is this already in Bugzilla?
>
> There are so many important things to fix in D...
>
> Bye,
> bearophile

Nothing is filled in bugzilla expect the fact that std.concurency is broken.

The fact is, I don't know what is intended or not here, and we lack a 
precise specification - or I'm not aware of it. So this has to be 
decided/confirmed as being a bug before I fill it in the bugtracker.


More information about the Digitalmars-d mailing list