[sv-ec] A question about copy constructors

From: William Paulsen <paulsen_at_.....>
Date: Tue Jan 16 2007 - 11:30:47 PST
Hi,

The LRM does not seem to be clear about the last statement in the
example below.  Can someone clarify this?

Thanks,
Bill Paulsen



module m;
    class c1
    endclass
 
    class c2 extends c1;
    endclass
 
    class c3 extends c2;
    endclass
 
    c3 p3 = new;
    c2 p2 = p3;
    c1 p1 = new p2;  // what is the type of the object: c1, c2, or c3?
endmodule
 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Jan 16 11:32:20 2007

This archive was generated by hypermail 2.1.8 : Tue Jan 16 2007 - 11:32:40 PST