Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!pilchuck!dataio!fnx!nazgul!bright From: bright@nazgul.UUCP (Walter Bright) Newsgroups: comp.lang.c++ Subject: Re: Can 'new' be used to allocate on the far heap? Message-ID: <294@nazgul.UUCP> Date: 11 Apr 91 04:11:42 GMT References: <1991Mar29.200057.1145@athena.mit.edu> Reply-To: bright@nazgul.UUCP (Walter Bright) Organization: Zortech, Seattle Lines: 11 In article <1991Mar29.200057.1145@athena.mit.edu> ahodgson@athena.mit.edu (Antony Hodgson) writes: /Can 'new' be used to allocate memory on the far heap using the medium /or small memory models? If so, how does one do it? If that is possible, then operator new would have to be overloadable based on its return type rather than the type of its arguments (it would return a far pointer rather than a near, but the arguments wouldn't change!). Basically, C++ is designed around the idea that there is only one pointer type possible for the 'this' pointer. Introducing ways to have different this pointer types in the same program produces all kinds of problems...