Coroutine's Communication
terranium
spam at here.lot
Tue Apr 29 01:55:49 PDT 2008
davidl Wrote:
> The trick here is that routines are still routines, and you defaultly get
> their local vars consisting an object.
Function's local variables don't comprise and object. func1 obvously wants a state object, so should accept it using normal parameter declaration. If you want to pass func1 various state objects you can declare func1 as a templated function.
More information about the Digitalmars-d
mailing list