home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18493 < prev    next >
Encoding:
Text File  |  1992-12-29  |  904 b   |  24 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!microsoft!wingnut!pauljo
  3. From: pauljo@microsoft.com (Paul Johns)
  4. Subject: Re: Do I need to worry about what the compiler will do?
  5. Message-ID: <1992Dec29.014833.15045@microsoft.com>
  6. Date: 29 Dec 92 01:48:33 GMT
  7. Organization: Microsoft Corp.
  8. References: <1992Dec24.155526.20892@umbc3.umbc.edu> 
  9. Distribution: usa
  10. Lines: 12
  11.  
  12. In article <1992Dec24.155526.20892@umbc3.umbc.edu> reagle@umbc8.umbc.edu wrote:
  13. >     This is the program I spoke of earlier concerning linked lists, and 
  14. > constructors.  My question is since each node in the list is an object, is this
  15. > inefficient?  Is each function of each object repeated in the object or 
  16. > executable code?
  17.  
  18. No.  You get one copy of the member functions and any static member data
  19. for the class, not one copy per object.
  20.  
  21. Read up on member functions and the this pointer to see how it works for
  22. member functions.
  23.