Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!emory!swrinde!cs.utexas.edu!uunet!pilchuck!dataio!fnx!nazgul!bright From: bright@nazgul.UUCP (Walter Bright) Newsgroups: comp.lang.c++ Subject: Re: Why no renew Message-ID: <281@nazgul.UUCP> Date: 11 Mar 91 21:40:51 GMT References: <2488@bnlux0.bnl.gov> <10895@pasteur.Berkeley.EDU> <1991Mar3.053504.14027@mathcs.sjsu.edu> Reply-To: bright@nazgul.UUCP (Walter Bright) Organization: Zortech, Seattle Lines: 7 In article <1991Mar3.053504.14027@mathcs.sjsu.edu> horstman@mathcs.sjsu.edu (Cay Horstmann) writes: /SINCE I AM AT IT: It would be awful nice if operator new could zero out /the memory when allocating arrays of integers or pointers (i.e. fill the /array with the bit pattern corresponding to a logical zero.) Ah, but you can do it! Simply overload the global operator new to use calloc. It's even portable!