Clarification to section 3.5 - user-defined types.


Subject: Clarification to section 3.5 - user-defined types.
From: Peter Flake (flake@co-design.com)
Date: Thu Apr 11 2002 - 03:57:18 PDT


All,

I propose adding the following at the end of section 3.5. (draft 5). This
is intended as a clarification, not new functionality.

A name used for a user-defined type cannot be used for any other purpose in
the same scope. Similarly, a name used for a user-defined type within a
generate block must not be used for any other purpose in the same scope,
although it may be used for a different user-defined type in a different
branch of a selection. For example:

generate if (exp)
      typedef int T;
else
      typedef shortint T;
endgenerate
T i; // data type depends on exp

Regards,

Peter.



This archive was generated by hypermail 2b28 : Thu Apr 11 2002 - 09:22:49 PDT