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