Path: utzoo!attcan!uunet!cimshop!davidm From: cimshop!davidm@uunet.UU.NET (David S. Masterson) Newsgroups: comp.lang.c++ Subject: Re: Shippable C++ Objects (RFC) Message-ID: Date: 20 Nov 89 00:29:18 GMT References: <31.UUL1.3#5109@pantor.UUCP> <4042@cadillac.CAD.MCC.COM> Sender: davidm@cimshop.UUCP Followup-To: comp.lang.c++ Organization: Consilium Inc., Mountain View, California. Lines: 23 In-reply-to: vaughan@mcc.com's message of 17 Nov 89 15:58:22 GMT In article <4042@cadillac.CAD.MCC.COM> vaughan@mcc.com (Paul Vaughan) writes: Suppose that in the byte stream there is some token that uniquely identifies the class of the the object being transmitted. Then that token could be used to look up in a table a function to be called to create such an object. So, you don't have to have a case statement (other techniques are possible), but you do have to somehow know of all interesting classes. A further technique would be to transmit a pathname through the byte stream and to use that to dynamically load a class definition. It would still be important to have a table of the classes that were already loaded. An interesting idea! Is the capability of run-time loading of libraries of objects supported within C++ yet? I would think that, in order for a program to make use of an object, its declaration would have to be known to the program at compile time. Therefore, I don't see how this could be done. :-( -- =================================================================== David Masterson Consilium, Inc. uunet!cimshop!davidm Mt. View, CA 94043 =================================================================== "If someone thinks they know what I said, then I didn't say it!"