Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!seismo!mcvax!ukc!hrc63!pjmp From: pjmp@hrc63.UUCP Newsgroups: comp.lang.c++ Subject: overloading new & delete operator Message-ID: <94@gec-rl-hrc.co.uk> Date: Mon, 16-Feb-87 09:20:25 EST Article-I.D.: gec-rl-h.94 Posted: Mon Feb 16 09:20:25 1987 Date-Received: Thu, 19-Feb-87 06:24:38 EST Organization: GEC Hirst Research Centre, Wembley. U.K. Lines: 16 Keywords: new, delete, overload According to the book reference manual section 8.5.11 (page 282) both new & delete can be overloaded. However having done this, I discover that c++ (or cfront) fails to use the new operators. I can see that this is reasonable for new which is really a "zero-ary" operator :-), but delete is a perfectly normal unary operator. Now having investigated this, I also realise I should use the contructor destructor mechanism for defining my own freestore mechanism. So is the inability to overload new & delete a feature or a bug? Peter Polkinghorne pjmp@uk.co.gec-rl-hrc or ...!mcvax!ukc!gec-rl-hrc!pjmp GEC Research Wembley UK "His intimate friends called him 'candle-ends', and his enemies 'toasted-cheese'" - Lewis Carroll