RE: [sv-ec] Class initialization proposal uploaded - Mantis 2597

From: Arturo Salz <Arturo.Salz_at_.....>
Date: Fri May 08 2009 - 17:21:50 PDT
I'm fine with the intent of the proposal. Like Steven, I have some wording improvements and the example seems a bit contrived - perhaps a simpler example along with the final values should be enough - something along the lines of:

class B;
  int x = 1;
  function new();
    x = 2;
  endfunction
endclass

class D extends B;
  int z = x;
  function new();
    $display( x, z );
  endfunction
endclass

Displays: 2, 2

---

        Arturo

-----Original Message-----
From: Steven Sharp [mailto:sharp@cadence.com]
Sent: Friday, May 08, 2009 2:24 PM
To: sharp@cadence.com; Arturo.Salz@synopsys.COM; sv-ec@eda.org; gordonv@model.com
Subject: Re: [sv-ec] Class initialization proposal uploaded - Mantis 2597

I am fine with the proposal.  There is some wording that I think could
be improved slightly, but experience indicates that if everyone starts
proposing what they think are minor wording improvements, we get bogged
down in discussion.  So I will resist temptation, and hope others do
also, unless they see a serious problem with it.

There is an error in the example code, which refers to b2 instead of c2.

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri May 8 17:21:21 2009

This archive was generated by hypermail 2.1.8 : Fri May 08 2009 - 17:22:16 PDT