Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!network.ucsd.edu!calmasd!wlp From: wlp@calmasd.Prime.COM (Walter Peterson) Newsgroups: comp.lang.c++ Subject: Re: Distinguishing stack and heap objects Message-ID: <2200@calmasd.Prime.COM> Date: 4 Jan 91 23:29:56 GMT References: <1990Dec29.013620.23761@sjsumcs.sjsu.edu! <1598@inews.intel.com> Organization: Calma - A Division of Prime Computer, San Diego, CA Lines: 33 In article <1598@inews.intel.com> psaripe@cadev5.UUCP (Phani Saripella ~) writes: >Only one catch here. operator new *CANNOT* be overloaded ( nor can delete >for that matter) You are woefully behind the times! It was true that prior to Release 2.0 operators new and delete could not be overloaded, but ever since then new and delete have been overloadable. That change occured quite a long time ago. I attribute a good bit of this confusion to the plethora of poorly written, poorly researched and out of date C++ books that are currently on the market. Just because someone found a publisher does not mean that they know what they are talking about. Nor does the fact that a book is offered for sale mean that either the bookseller or publisher care if it is obsolete. Until the ANSI standard is promulgated the most authoritative source is: Ellis, Margaret A. & Bjarne Stroustrup, "The Annotated C++ Reference Manual", Addison-Wesley, Reading, MA, 1990 ISBN 0-201-51459-1 This is the Base Document for the ANSI committee. -- Walter L. Peterson | ______ Internet : wlp@calmasd.Prime.COM | \ / CompuServe : 70441,3177 | \ / Silence = Death "The opinions expressed here are my own." | \/