Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #86840
| Path | csiph.com!1.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx11.ams4.POSTED!not-for-mail |
|---|---|
| From | Mr Flibble <flibble@reddwarf.jmc.corp> |
| Newsgroups | comp.lang.c++ |
| Subject | Re: Virtual functions: To const, or not to const? |
| Message-ID | <20221008201946.00004e88@reddwarf.jmc.corp> (permalink) |
| References | <thosit$6fp$1@gioia.aioe.org> <ths1rk$7039$2@dont-email.me> <ad5ab9e6-6982-413e-82f6-dfcbc1b425a3n@googlegroups.com> |
| Organization | Jupiter Mining Corporation |
| X-Newsreader | Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII |
| Content-Transfer-Encoding | 7bit |
| Lines | 21 |
| X-Complaints-To | abuse@eweka.nl |
| NNTP-Posting-Date | Sat, 08 Oct 2022 19:19:46 UTC |
| Date | Sat, 8 Oct 2022 20:19:46 +0100 |
| X-Received-Bytes | 1704 |
| Xref | csiph.com comp.lang.c++:86840 |
Show key headers only | View raw
On Sat, 8 Oct 2022 11:03:35 -0700 (PDT) Michael S <already5chosen@yahoo.com> wrote: > On Saturday, October 8, 2022 at 5:35:51 PM UTC+3, Bonita Montero > wrote: > > There is no general answer or it depends on what you expect from > > this interface. In individual cases, this question is then easy > > to answer and therefore I do not know why it has to be discussed. > > There is a general answer - don't use inheritance except as substitute > for interfaces, which typically means abstract classes with no data > members. All other forms of inheritance are known antipattern. > Use aggregation instead. Bullshit. Whilst in general composition is to be preferred over inheritance there is nothing fundamentally wrong with deep inheritance hierarchies if you have the slightest clue; it certainly is NOT an anti-pattern: it is just another tool in the toolbox. /Flibble
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Virtual functions: To const, or not to const? Juha Nieminen <nospam@thanks.invalid> - 2022-10-07 09:47 +0000
Re: Virtual functions: To const, or not to const? David Brown <david.brown@hesbynett.no> - 2022-10-07 12:50 +0200
Re: Virtual functions: To const, or not to const? Juha Nieminen <nospam@thanks.invalid> - 2022-10-10 06:20 +0000
Re: Virtual functions: To const, or not to const? Richard Damon <Richard@Damon-Family.org> - 2022-10-10 07:38 -0400
Re: Virtual functions: To const, or not to const? Juha Nieminen <nospam@thanks.invalid> - 2022-10-10 12:08 +0000
Re: Virtual functions: To const, or not to const? Richard Damon <Richard@Damon-Family.org> - 2022-10-10 20:47 -0400
Re: Virtual functions: To const, or not to const? Paavo Helde <eesnimi@osa.pri.ee> - 2022-10-10 15:13 +0300
Re: Virtual functions: To const, or not to const? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2022-10-10 09:43 -0700
Re: Virtual functions: To const, or not to const? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2022-10-10 09:26 -0700
Re: Virtual functions: To const, or not to const? Paavo Helde <eesnimi@osa.pri.ee> - 2022-10-07 14:00 +0300
Re: Virtual functions: To const, or not to const? Richard Damon <Richard@Damon-Family.org> - 2022-10-07 07:29 -0400
Re: Virtual functions: To const, or not to const? Öö Tiib <ootiib@hot.ee> - 2022-10-07 05:55 -0700
Re: Virtual functions: To const, or not to const? "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2022-10-08 14:56 +0200
Re: Virtual functions: To const, or not to const? Bonita Montero <Bonita.Montero@gmail.com> - 2022-10-08 16:35 +0200
Re: Virtual functions: To const, or not to const? Michael S <already5chosen@yahoo.com> - 2022-10-08 11:03 -0700
Re: Virtual functions: To const, or not to const? Bonita Montero <Bonita.Montero@gmail.com> - 2022-10-08 20:36 +0200
Re: Virtual functions: To const, or not to const? Mr Flibble <flibble@reddwarf.jmc.corp> - 2022-10-08 20:19 +0100
Re: Virtual functions: To const, or not to const? Bonita Montero <Bonita.Montero@gmail.com> - 2022-10-10 17:58 +0200
Re: Virtual functions: To const, or not to const? Muttley@dastardlyhq.com - 2022-10-09 09:19 +0000
Re: Virtual functions: To const, or not to const? Manfred <noname@add.invalid> - 2022-10-08 21:42 +0200
csiph-web