Mail Archives: djgpp/1996/12/13/08:15:43
At 09:06 13/12/96 +0000, Bill Currie wrote:
[snipped]
>
>Malloc (and thus new) will not allocate 0 bytes, and will return a null
>pointer.
>
Are you sure of this? The C++ Programming Language 2nd Ed. says that /a
pointer to an object/ is returned, not a null pointer, for the new operator.
(See pg. 498).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cesar Scarpini Rabak E-mail: csrabak AT ipt DOT br
DME/ASC Phone: 55-11-268-35221Ext.350
IPT - Instituto de Pesquisas Tecnologicas Fax: 55-11-268-5996
Av. Prof. Almeida Prado, 532. Sao Paulo - SP 05508-901 BRAZIL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Raw text -