Challenge

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 3 07:08:19 PDT 2016


On Monday, 3 October 2016 at 13:50:26 UTC, John Colvin wrote:
> The problem is that function pointers in "is" expressions don't 
> match "function" or "delegate".
>
> static assert (is(void delegate() == delegate)); //passes
> static assert (is(void function() == function)); //fails
> static assert (is(void function() == delegate)); //fails
>
> Bug report?

Note that there is at least some code that relies on current 
behavior to distinguish delegate/function fields from method 
declarations in aggregates.


More information about the Digitalmars-d mailing list