On 18-05-2012 20:22, Mehrdad wrote:
> My brain just exploded.
> Can someone explain what's going on?
>
> class Test
> {
> public void foo() { }
> }
>
> static assert(is(typeof(&Test.foo) == void function()));
Delegates. Pointer to member function + class instance.
--
Alex Rønne Petersen
alex at lycus.org
http://lycus.org