RE: [sv-bc] Assignment compatibility of packed arrays of enums

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Sat Oct 03 2009 - 23:18:34 PDT
Add a Mantis item.

Shalom

It is tiresome that there seems to be no clean way to
express the assertion that an enum variable's value is
legitimate; testing the string result of .name() for
non-zero length is ugly and obscure, and this is
unduly verbose:

assert ($cast(enum_var, integer'(enum_var)));

It would be nice if the "inside" operator were
extended to allow an enum type name to appear
as its right-hand side.  (It would also be rather
nice if "foreach" could iterate an enum variable
over the values of its type, and any variable over
the values of an "inside"-style open_range_list.
That's on my wish-list for any future PAR.)
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sat Oct 3 23:23:29 2009

This archive was generated by hypermail 2.1.8 : Sat Oct 03 2009 - 23:26:05 PDT