On Nov 13, 2007, at 1:37 AM, Christophe Braillon wrote:

Hi,

I was wondering if the "signal" directive exits the function where it is called like "return" or does it behave like "call". I looked everywhere in the TinyOS programming manual but nothing is said about that. I'll be glad if someone can tell me if there is documentation about that.

'signal' and 'call' invoke functions. The annotations are there just to make clear that they are commands and events. That is

"call Send.send()" is effectively "Send.send()"

and

"signal Send.sendDone()" is effectively "Send.sendDone()".

They do not behave like return, which exists function scope.

Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to