
20 Sep
2012
20 Sep
'12
7:18 a.m.
int f( caller_t & c, strg & s, int x) { caller_t::yield_t b = c.bind( s, x); // s and x are now used to store the next calls.
b.yield( s.length() + x ); // here s and x have been reassigned g(b);
}
void g( caller_t::yield_t & b) { b.yield( b.get<0>.length() + 2*b.get<1> ); // here s and x have been reassigned }
do we really need the selft_t::get<>()? The signature of function g() says that it is not interested in variables s and x. Oliver