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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e93f73587e2bc1c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!news.weisnix.org!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Sharing generic bodies across instantiations. Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4c4e2d69$0$2378$4d3efbfe@news.sover.net> <4c4f5c28$0$2375$4d3efbfe@news.sover.net> <7da1e21f-bec7-4607-923c-0fd6cbcfc753@t10g2000yqg.googlegroups.com> Date: Wed, 28 Jul 2010 11:28:49 +0200 Message-ID: <1vjqnwxhvr91j.3e8ryvkk8ezv$.dlg@40tude.net> NNTP-Posting-Date: 28 Jul 2010 11:28:49 CEST NNTP-Posting-Host: e1ccfc27.newsspool1.arcor-online.net X-Trace: DXC=CZ]eNUlQLON[6=1B@oB@@@ic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgB[OgT3@U=9bN[6LHn;2LCVN7enW;^6ZC`D\`mfM[68DCCYYj=ghDF On Wed, 28 Jul 2010 00:59:03 -0700 (PDT), Maciej Sobczak wrote: > On 28 Lip, 00:23, "Peter C. Chapin" wrote: > >> That is, the nature of C++ essentially requires a >> replication strategy. > > Why? What part of that "nature" requires it? Macro's nature [...] > But, for the sake of exercise, think about a C++ *interpreter*. Interpreter is an obvious non-starter in this context. Generics are considered compilable. Well, they are kind of compilable. Templates aren't compilable, almost not. (There is no crisp line between compiled and interpreted) In other context, it could be different. E.g. both generics and templates are in fact shared in the visual debugger. You can step into a "generic body," even if there is no such object-code entity. That was not the OP's question. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de