home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!!mittle
- From: mittle@watson.ibm.com (Josh Mittleman)
- Subject: Re: con/destruction of fundamental type
- Sender: news@watson.ibm.com (NNTP News Poster)
- Message-ID: <1992Aug20.173211.27603@watson.ibm.com>
- Date: Thu, 20 Aug 1992 17:32:11 GMT
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- References: <1992Aug20.161921.11717@ericsson.se>
- Nntp-Posting-Host: siena.watson.ibm.com
- Organization: IBM T.J. Watson Research Center
- Lines: 15
-
- Jonas Nygren writes:
-
- > I am trying to manage memory allocation, con- and destruction in my own
- > code. I also want these operations to work for struct/classes as well as
- > fundamental types, int, char aso.
-
- > How do you do this in C++?
-
- Overload ::new(). Memory mangagement is hadled by oeprator new(), not by
- the constructor: The constructor simply initialized the blcok of memory
- once it has been allocated.
-
- ===========================================================================
- Josh Mittleman (mittle@watson.ibm.com)
- J2-C28 T.J. Watson Research Center, PO Box 704, Yorktown Heights, NY 10598
-