RE: [sv-ec] abstract classes - doubts

From: danielm <danielm_at_.....>
Date: Wed Apr 09 2008 - 08:38:22 PDT
Thanks Rich - this mantis in fact covers almost all.

There are still 2 doubts:

1st can I have abstract class with no virtual in the class header - but
containing pure virtual methods

class BasePacket;

pure virtual function integer send(bit[31:0] data); endfunction  //????
allowed or error

endclass

2nd. can I construct a virtual class which has no pure virtual methods - so
in fact is not an abstract class?;

virtual class BasePacket;

virtual function integer send(bit[31:0] data); endfunction

endclass

BasePacket p=new; //???? allowed or error

DANiel


  _____  

From: Rich, Dave [mailto:Dave_Rich@mentor.com] 
Sent: Wednesday, April 09, 2008 4:49 PM
To: danielm; sv-ec@server.eda.org
Cc: Piotr Winter
Subject: RE: [sv-ec] abstract classes - doubts


This is all covered by mantis 1308 and in D4. Anyone can obtain a copy of D4
from the IEEE Store.
 
Dave
 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Apr 9 08:39:19 2008

This archive was generated by hypermail 2.1.8 : Wed Apr 09 2008 - 08:39:54 PDT