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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.180.9.41 with SMTP id w9mr17685wia.2.1375388089486; Thu, 01 Aug 2013 13:14:49 -0700 (PDT) X-Received: by 10.49.1.112 with SMTP id 16mr137705qel.20.1375388089061; Thu, 01 Aug 2013 13:14:49 -0700 (PDT) Path: border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.85.212.216.MISMATCH!mh2no5751750wib.1!news-out.google.com!cc8ni5613wib.1!nntp.google.com!mh2no5751746wib.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 1 Aug 2013 13:14:48 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=206.53.78.59; posting-account=ShYTIAoAAABytvcS76ZrG9GdaV-nXYKy NNTP-Posting-Host: 206.53.78.59 References: <6238c325-79c5-4537-ba55-2800110dc6df@googlegroups.com> <1wugpqyea6s39$.e2e8eshup5wn$.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <04d5c0d4-8f2f-4308-aef0-13bc7b4595c8@googlegroups.com> Subject: Re: Generics vs. O-O? From: sbelmont700@gmail.com Injection-Date: Thu, 01 Aug 2013 20:14:49 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Original-Bytes: 1918 Xref: number.nntp.dca.giganews.com comp.lang.ada:182802 Date: 2013-08-01T13:14:48-07:00 List-Id: On Thursday, August 1, 2013 3:52:42 PM UTC-4, Eryndlia Mavourneen wrote: >=20 > ...the memory overhead for non-shared generic code could be substantial..= . > I have occasion to deal with a lot of "clever" code that fakes OOP using ge= neric packages, i.e. where each instantiation is an object and generic obje= ct parameters serve as initializers, and the executable sizes are *tremendo= us* (presumably the compiler duplicates the code for every subprogram for e= very instantiation). As a general rule, I stick to type parameters. -sb