Re: [sv-ec] class related questions

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Thu Jul 10 2008 - 07:30:40 PDT
Francoise Martinolle wrote:
>  
> Gordon,
> 
> So I am interpreting your response that with incomplete forward type,
> you can refer to 
> anything inside the class before the class declaration is fully seen?
> 
> typedef C;
> parameter q = C#()::cp;
> typedef C#()::T C_T;
> 
> class C #(parameter cp = 0);
>   typedef bit T;
> endclass
> 
> Is that right?

Yes.

That does open opportunities for definitional circularities but
such circularities are present in a number of situations already
so I don't think anything fundamentally new was opened up there.
The systems have to guard against such invalid circularities.

Gord

-- 
--------------------------------------------------------------------
Gordon Vreugdenhil                                503-685-0808
Model Technology (Mentor Graphics)                gordonv@model.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jul 10 07:33:11 2008

This archive was generated by hypermail 2.1.8 : Thu Jul 10 2008 - 07:33:20 PDT