RE: [sv-ec] Mantis 2575

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Mon Jun 08 2009 - 00:20:51 PDT
Cliff,

Regarding v3 and v2, 8.24 says, "For a parameterized class C, the default specialization is C#(). Other than as the prefix of the scope resolution operator, use of the unadorned name of a parameterized class shall denote the default specialization of the class." So these are covered.

(I assume that the $display statements in your example should be v, v2, and v3, respectively.)

Regards,
Shalom


> -----Original Message-----
> From: owner-sv-ec@server.eda.org 
> [mailto:owner-sv-ec@server.eda.org] On Behalf Of Clifford E. Cummings
> Sent: Monday, June 08, 2009 3:11 AM
> To: sv-ec@server.eda.org
> Subject: [sv-ec] Mantis 2575
> 
> Is the following legal and should it be added to Mantis 2575 (asked 
> by Mantis 2608)
> 
> WAS:
> class vector #(parameter width = 7);
> endclass
> 
> vector #(3) v = new;
> initial $display (v.width);
> 
> PROPOSED:
> class vector #(parameter width = 7);
> endclass
> 
> vector #(3) v = new;
> initial $display (v.width);
> 
> vector v2 = new;    // Legal - uses default parameter width = 7
> initial $display (v.width);
> 
> vector #() v3 = new;   // Legal - uses default parameter width = 7 
> -OR- // Illegal - specifying empty parameter value not permitted
> initial $display (v.width);
> 
> Regards - Cliff 
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Jun 8 00:34:48 2009

This archive was generated by hypermail 2.1.8 : Mon Jun 08 2009 - 00:36:05 PDT