Pointer to interface method

Mandel mandel at mailinator.com
Sun Apr 15 09:53:27 PDT 2007


Hi,

I like to have a pointer to an interface method,
like this:

interface Item
{
	void work();
}

int main(char[][] args)
{
	
	auto s = &Item.work
	return 0;
}

But this example fails because of an "undefined symbol" for Item.work.
Is this a bug or intended behaviour?



More information about the Digitalmars-d-learn mailing list