[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]
c++ 2.1 diffs
- To: <roger@xxxxxxxxxxx>, <xtech@xxxxxxxxxxx>
- Subject: c++ 2.1 diffs
- From: Mark S. Miller <vlad!mark>
- Date: Wed, 27 Jun 90 22:08:38 PDT
- In-reply-to: <Roger>,46 PDT <9006272142.AA04233@xanadu>
Date: Wed, 27 Jun 90 14:42:46 PDT
From: xanadu!roger (Roger Gregory)
>From apple!fernwood!portal!cup.portal.com!wmmiller Wed Jun 27 14:41:46 PDT 1990
Article 5388 of comp.lang.c++:
Path: xanadu!apple!fernwood!portal!cup.portal.com!wmmiller
>From: wmmiller@xxxxxxxxxxxxxx (William Michael Miller)
Newsgroups: comp.lang.c++
Subject: C++ 2.1 differences
Message-ID: <31188@xxxxxxxxxxxxxx>
Date: 27 Jun 90 04:03:48 GMT
Organization: The Portal System (TM)
Lines: 141
...
4. The correct syntax for deleting an array is "delete [] p;". The former
syntax, in which an expression within the brackets was required to give the
number of elements in the array being deleted, is now officially an
anachronism. [Implemented.]
Mr. Hill & Roger: forget what I said before. Since "operator new(..)"
and "operator delete (..)" can be provided by the user, I don't see
how it is *possible* for the language to implement this. (For those
who missed the verbal conversation) The issue is: if you are deleting
an array of objects with destructors, how does C++ know how many
destructors to invoke? I'll investigate in the A.R.M. (The new
Annotated Reference Manual by Ellis & Stroustrup). Is this an issue
for us (i.e., do PrimArrays need it?)