home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!guxu
- From: guxu@physics.ubc.ca (Guang Xu)
- Newsgroups: comp.sys.mac.programmer
- Subject: Using new() and delete() for direct class
- Date: 21 Dec 1992 22:38:11 GMT
- Organization: The University of British Columbia
- Lines: 13
- Distribution: world
- Message-ID: <1h5h0jINNd1@iskut.ucs.ubc.ca>
- NNTP-Posting-Host: physics.ubc.ca
-
- I have been using new()/delete() to creat/delete objects which
- are defined as direct class for a while and it never complained
- so far. All a sudden I noticed the following in the Think C User's
- Manual:
- "The new() and delete() functions are not implemented for direct
- classes. You're responsible for allocating space for the
- object yourself. ...". I did notice that deleting a object within
- it's method ( delete(this)) causes crash, but it's ok if I delete
- the object from outside using delete(theObject). Can anyone explain
- this phenomena?
- After all, are there any existing functions to creat/delete object
- defined as direct class?
-
-