Re: Clarification to section 3.5 - user-defined types.


Subject: Re: Clarification to section 3.5 - user-defined types.
From: Kevin Cameron x3251 (dkc@galaxy.nsc.com)
Date: Thu Apr 11 2002 - 10:07:12 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.

That doesn't look very legal to me - I would have expected the definition
of T to expire at the endgenerate.

Kev.



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