Template for function or delegate (nothing else)

useo useo at start.bg
Wed Feb 9 11:35:42 PST 2011


Is it possible to create a template which only accepts functions or
delegates like this example:

class Example(T : void function()) { // or ..(T : void delegate())..

	T callback;

}

Where T is a function or a delegate...

Thanks for every suggestion!


More information about the Digitalmars-d-learn mailing list