About function keyword

bearophile bearophileHUGS at lycos.com
Sat Dec 10 14:42:29 PST 2011


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


More information about the Digitalmars-d mailing list