Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!uw-beaver!sumax!nwnexus!pilchuck!dataio!bright From: bright@Data-IO.COM (Walter Bright) Newsgroups: comp.os.msdos.programmer Subject: Re: Virtual Memory for the Heap Message-ID: <2618@dataio.Data-IO.COM> Date: 6 Aug 90 18:50:34 GMT References: <2699@mindlink.UUCP> Organization: Data I/O Corporation; Redmond, WA Lines: 38 In article <2699@mindlink.UUCP> a35@mindlink.UUCP (Bruce Atherton) writes: operators. The disadvantage is that the optimizer cannot tell when the dereferencing function calls are redundant and cannot eliminate them. For instance: struct A __handle *h; h->a = 1; h->b = 2; On the second assignment, the function call to dereference h can be eliminated if handles are built in to the compiler, but cannot be if it's a user-defined function in C++. You cannot do it with pointers to something-besides-a-class in standard C++.