result_t can potentially take on more values than SUCCESS and FAIL. 
This is the direction tinyos-2.x is heading.

bool is typically used for "isFunction()" where it makes sense to have
a TRUE or FALSE return type, such as "isRunning()", where SUCCESS and
FAIL (from a logic perspective) don't provide the right feedback.

-Joe

On 2/6/06, Martin Gercke <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I wonder where the difference between result_t and bool is?
> Why should I be using the one or the other.
> As I can see from some header-files result_t seems to be unsigned char
> and bool looks like uint8_t.
> Any ideas about that?
>
> Martin
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

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

Reply via email to