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

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Sat May 09 2009 - 12:38:22 PDT
I agree the example is contrived; I wanted to hit
several of the issues simultaneously.  I have no
problem with putting in the simpler example.  I'll
do that as a separate version and we can decide
in the meeting.

If you and/or Steven want to send me any wording
suggestions, I can see if they are similar to each
other and modify things a bit.

Thanks

Gord.

Arturo Salz wrote:
> 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
> 

-- 
--------------------------------------------------------------------
Gordon Vreugdenhil                                503-685-0808
Model Technology (Mentor Graphics)                gordonv@model.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sat May 9 12:39:05 2009

This archive was generated by hypermail 2.1.8 : Sat May 09 2009 - 12:39:52 PDT