interface ihello { in void hello(); out void cruel(); out void world(); behaviour { on hello: cruel; on hello: world; } } component hello_function_assign { provides ihello h; behaviour { bool b = false; bool f () { if (b) h.cruel (); else h.world (); return !b; } on h.hello(): b = f(); } }