home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!mcsun!sunic!ericom!falcon!jonas
- From: jonas@beppe.ericsson.se (Jonas Nygren)
- Subject: con/destruction of fundamental type
- Message-ID: <1992Aug20.161921.11717@ericsson.se>
- Sender: news@ericsson.se
- Nntp-Posting-Host: falcon.ericsson.se
- Reply-To: jonas@beppe.ericsson.se
- Organization: Ericsson Telecom AB
- Date: Thu, 20 Aug 1992 16:19:21 GMT
- Lines: 20
-
-
- 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.
-
- I have tried this small example with both HP and Sun CC but both claim
- than con/destruction as defined is illegal.
-
- main(){
- int i, *p = &i;
-
- p->int::int(1);
- p->int::~int();
- }
-
- How do you do this in C++?
-
- /jonas
-
- H
-