From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fcc2d88d867060e8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-22 12:46:43 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-05!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newshosting.com!news-xfer1.atl.newshosting.com!diablo.voicenet.com!rcn!feed3.news.rcn.net!not-for-mail Sender: jsa@rigel.goldenthreadtech.com Newsgroups: comp.lang.ada Subject: Re: load and use a ".o" file? References: <132Fb.3462$I02.2996@newssvr23.news.prodigy.com> From: j-anthony@rcn.com (Jon S. Anthony) Date: 22 Dec 2003 15:49:07 -0500 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 207.172.132.176 X-Trace: 1072126002 reader3.news.rcn.net 4745 207.172.132.176:42411 X-Complaints-To: abuse@rcn.com Xref: archiver1.google.com comp.lang.ada:3712 Date: 2003-12-22T15:49:07-05:00 List-Id: Stephen Leake writes: > lifetime n00b writes: > ... > > Maybe I wasn't clear on exactly what I need to do. The program that > > needs to load and use the object file is *already running* before > > the object file is compiled. This "main program" has no prior > > information about the data or routines which may be in the object > > file it is being told to load. This sort of thing is perfectly reasonable and something that is extremely useful in a wide range of applications. What I don't understand is why people don't just use technology that has solved this problem since "for ever". No, dll's and so's are not the answer - they are intended to solve a different (related) problem and are at best a poor mans hack for what you are talking about. What you really "need"[1] here is a true dynamic language. > Most good ideas have been thought of before :). Indeed. I see that Greenspun's 10th is alive and well on c.l.a :-|... /Jon