Re: [sv-bc] Can Class constructor have non ANSI style declaration?

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Tue May 29 2007 - 08:13:11 PDT
> And LRM is not clear on that.

The current BNF only allows ANSI-style declarations for class
constructors. 

    http://www.eda-stds.org/sv/Changes_draft3/LRM_Changes_A_BNF.html
    http://www.eda.org/sv-ec/hm/1714.html

Should the BNF be enhanced to allow old-style class constructor
declarations for consistency with method declarations?

-- Brad

-----Original Message-----
From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of
Surya Pratik Saha
Sent: Tuesday, May 29, 2007 6:11 AM
To: sv-bc@eda-stds.org
Subject: [sv-bc] Can Class constructor have non ANSI style declaration?

Is the following case valid?
module top;
    class C;
        function new;
            input x;
        endfunction           
    endclass
endmodule   

Different simulators are behaving differently. And LRM is not clear on
that.

--
Regards
Surya





-- 
This message has been scanned for viruses and
dangerous content by 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 Tue May 29 08:13:35 2007

This archive was generated by hypermail 2.1.8 : Tue May 29 2007 - 08:13:46 PDT