home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12323 < prev    next >
Encoding:
Text File  |  1992-08-13  |  2.1 KB  |  49 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!gatech!news.ans.net!cmcl2!HARRISON.CS.NYU.EDU!osinski
  3. From: osinski@HARRISON.CS.NYU.EDU (Ed Osinski)
  4. Subject: Re: How to hack c++ into doing late binding ?
  5. Message-ID: <9208131916.AA24356@HARRISON.CS.NYU.EDU>
  6. Sender: daemon@cmcl2.nyu.edu (Mr Background)
  7. Reply-To: osinski@cs.nyu.edu
  8. Organization: New York University
  9. References: <2A7FCE77.45E5@tct.com> 
  10. Date: Thu, 13 Aug 1992 19:16:58 GMT
  11. Lines: 36
  12.  
  13. In article <1992Aug11.000613.6607@leland.Stanford.EDU>, kocks@jessica.stanford.edu (Peter Kocks) writes:
  14. |> Here's a qestion for all you c++ fanatics.
  15. |> 
  16. |> I want my application to support late binding.  By that I mean:
  17. |> 
  18. |> I want to write some code and compile and link it together so I have
  19. |> my application.  At some later time, I want to be able to give the
  20. |> user of my application a new version of an object (or should I say
  21. |> virtual class) already in the excecutable code.  I want the user to be
  22. |> able to simply add the new definition for that class of object to the
  23. |> excutable without needing to recompile the thing.
  24. |> 
  25. |> [ ... stuff deleted ... ]
  26.  
  27. The book "Advanced C++ Programming Styles and Idioms", by James O. Coplien
  28. describes how to do this in Chapter 9, and it gives some code that (he claims)
  29. works on Sun workstations.  Be aware that, although it is possible, it requires
  30. a different style of programming than many C++ programmers are accustomed to.
  31.  
  32. By the way, this book really does cover advanced C++, unlike the vast majority
  33. of computer books with the word "advanced" in the title, which usually spend
  34. several chapters covering topics such as bits, 2's complement integers and
  35. assignment statements, and then go on to really 'advanced' topics like functions
  36. and pointers :-)
  37.  
  38. |> --Peter Kocks
  39. |>   kocks@chemistry.stanford.edu
  40.  
  41. -----------------------------------------------------------------------
  42.  Ed Osinski                  |
  43.  Computer Science Department |
  44.  New York University         |           This space for rent
  45.  E-mail:  osinski@cs.nyu.edu |
  46.  Voice:   (212) 998-3515     |
  47.  Fax:     (212) 995-4123     |
  48. -----------------------------------------------------------------------
  49.