Re: [gtk-list] Re: gtk-- : What's wrong with this code...?

On Sun, 3 May 1998, Jonathan Belson wrote:

> On 03-May-98 Guillaume Laurent wrote:
> > Jonathan Belson <> writes:
> > 
> >>         GSList *gsl = new GSList
> > 
> > No need to call 'new' on this one. It's not a class anyway.
> AIUI a struct is a type of class in C++, but since there is no
> constructor I'd agree that calling 'new' is kind of pointless 8^)
Since WHEN does calling new have anything todo with the fact if the type
is a class or if the object has a constructor?

It actually depends upon the usage of the pointer.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]