[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]
C++ unimplemented "delete foo;" suggestion
- To: <eric>, <heh>, <ravi>, <dean>
 
- Subject: C++ unimplemented "delete foo;" suggestion
 
- From: Mark S. Miller <mark>
 
- Date: Fri, 26 Jan 90 21:48:05 PST
 
- Cc: <xtech>
 
How about:
#define DELETE(sptr) (sptr.delete())
And have the translator translate
	foo delete.
into
	DELETE(foo)
?  SPTRs would define a "delete()" method that would do a real delete
on their internal pointer.  This should be a much less ugly way to get
around the C++ unimplemented cases than introducing a temporary wimpy
variable.  What do y'all think?