RE: [sv-ec] out-of-scope definition of typedef, nested class.

From: Arturo Salz <Arturo.Salz_at_.....>
Date: Wed Mar 26 2008 - 10:28:17 PDT
This is not a just a syntactical limitation. It is a conscious
restriction that requires the class to be defined in the same
hierarchical scope.

 

            Arturo

 

From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of
Rich, Dave
Sent: Wednesday, March 26, 2008 7:10 AM
To: danielm; sv-ec@eda.org
Subject: RE: [sv-ec] out-of-scope definition of typedef, nested class.

 

There is no syntax to do this that I know of. Also, a forward typedef
must be completely defined before the end the enclosing scope that it
appears in.

 

________________________________

From: owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org] On
Behalf Of danielm
Sent: Wednesday, March 26, 2008 6:22 AM
To: sv-ec@server.eda.org
Subject: [sv-ec] out-of-scope definition of typedef, nested class.

 

Is there a way for defining nested class out-of-scope - similarly to
extern methods?

 

Is below legal?

 

-------- classA.h -----

 

class A;

 

    typedef class B;

 

endclass

 

-----------------------------

 

 

------ classA.sv ----------

 

`include "classA.h"

 

class A::B

 

endclass

 

--------------------------------

 

DANiel


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/> , and is

believed to be clean. 
-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/> , and is

believed to be clean. 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Mar 26 10:31:31 2008

This archive was generated by hypermail 2.1.8 : Wed Mar 26 2008 - 10:32:13 PDT