RE: [sv-ec] wait on event

From: Steven Sharp <sharp_at_.....>
Date: Thu Jan 18 2007 - 16:02:02 PST
>From: "Rich, Dave" <Dave_Rich@mentor.com>
>
>Or do handles always have to be compared explicitly with null in a
>Boolean expression?

I don't believe that 1800 says that a handle has an inherent truth
value based on being unequal to null.  C programmers may be used to
such a rule in C, but the C language specifies it explicitly and SV
does not.

You could try to allow it, but then you need some messy rules to
allow handles in these "boolean" contexts but not other numeric
expressions.  And the result is less clear and readable than the
explicit comparison with null.  For example, most users would
probably try to interpret wait(ev) as somehow waiting on the event
to occur, like wait(ev.triggered).

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jan 18 16:02:32 2007

This archive was generated by hypermail 2.1.8 : Thu Jan 18 2007 - 16:02:37 PST