indefinable type

BCS BCS_member at
Mon Feb 20 10:31:27 PST 2006

dg is a delegate and must return a value of the same type as it self. What
should "some_type" be to make this work?

some_type delegate() dg;

while(   (dg = dg())    !is null){}

(in case you are wondering this would act as a finite state machine)

More information about the Digitalmars-d-learn mailing list