Delegate returning itself

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Dec 6 07:46:15 PST 2014


The problem is the recursive *alias* rather than the delegate. 
Just don't use the alias name inside itself so like

alias MyDelegate = void delegate() delegate();

will work. The first void delegate() is the return value of the 
MyDelegate type.


More information about the Digitalmars-d-learn mailing list