RE: [sv-ec] rules for overriding virtual method

From: Daniel Mlynek <daniel.mlynek_at_.....>
Date: Thu Jul 10 2008 - 06:30:16 PDT
My doubt can be expressed in example like below - is it legal to override
logic with reg (both are matching types)
virtual class BaseClass;
     pure virtual function int test(logic aa);
endclass
class DerivedClass extends BaseClass;
     function int test( reg aa );    
     endfunction   
endclass
 
 
DANiel

  _____  

From: owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org] On
Behalf Of Daniel Mlynek
Sent: 10 lipca 2008 15:20
To: 'SV-EC'
Cc: 'Marcin Skrobol'; 'Piotr Winter'
Subject: [sv-ec] rules for overriding virtual method


LRM says:
"Later, when subclasses override virtual methods, they shall follow the
prototype exactly by having matching return types and matching argument
names, types, and directions. It is not necessary to have matching default
expressions, but the presence of a default shall match."
 
I'm not sure if statement : matching type in above context was used to refer
term defined im lrm as "matching type" chapter 6.22 or just for english
meaning on this word. My doubts are because in one sentence there are used :
mathchig name, matching type, matching direction. etc..
 
Maybe it should be rewrtiten-reworded to make it clear.
 
 
 
DANiel

-- 
This message has been scanned for viruses and 
dangerous content by  <http://www.mailscanner.info/> MailScanner, 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 Thu Jul 10 06:30:51 2008

This archive was generated by hypermail 2.1.8 : Thu Jul 10 2008 - 06:31:18 PDT