RE: [sv-ec] A question about copy constructors

From: Rich, Dave <Dave_Rich_at_.....>
Date: Thu Jan 18 2007 - 16:10:22 PST
But you are making a copy of what the handle points to: nothing.

> -----Original Message-----
> From: Steven Sharp [mailto:sharp@cadence.com]
> Sent: Thursday, January 18, 2007 4:07 PM
> To: Rich, Dave; paulsen@cadence.com; sv-ec@eda-stds.org;
> Arturo.Salz@synopsys.com
> Subject: RE: [sv-ec] A question about copy constructors
> 
> 
> >From: "Arturo Salz" <Arturo.Salz@synopsys.com>
> 
> >Yes. I do have a reason:
> >  The copy constructor implies that an object should be copied.
> 
> And that copy inherently involves dereferencing the handle, which
> is an error for a null handle.  There is a big difference between
> copying a null handle, and copying what that handle points to.  The
> first is legal, and the second is an error.  I agree with Arturo
> on this one.
> 
> 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 Thu Jan 18 16:11:51 2007

This archive was generated by hypermail 2.1.8 : Thu Jan 18 2007 - 16:11:57 PST