Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!kunivv1!atcmpe!leo From: leo@atcmp.nl (Leo Willems) Newsgroups: comp.lang.c++ Subject: this and 0 Keywords: this assignment zero-comparison Message-ID: <616@atcmpe.atcmp.nl> Date: 7 Jun 90 20:10:45 GMT Organization: AT Computing, Nijmegen, The Netherlands Lines: 21 Since C++ 2.0 assignment to this is an anachronism. Is it still ok to check the this pointer against 0 to figure out if an object is on the heap or not? I need to know this, despite the fact that I can define my own class::operator new(), currently I'm using an ugly workaround. If so, will this be the case in next releases? If so, is there still the "all possible execution paths" catch? Thanks, (I couldn't find it in the 2.0 syntax reference) Leo Willems Internet: leo@atcmp.nl AT Computing UUCP: mcsun!hp4nl!kunivv1!atcmpe!leo P. O. Box 1428 6501 BK Nijmegen Phone: +31-80-566880 The Netherlands Fax: +31-80-555887