Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #86015 > unrolled thread
| Started by | Mr Flibble <flibble@reddwarf.jmc.corp> |
|---|---|
| First post | 2022-08-23 22:34 +0100 |
| Last post | 2022-08-24 00:20 -0700 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.c++
struct Mr Flibble <flibble@reddwarf.jmc.corp> - 2022-08-23 22:34 +0100
Re: struct Lynn McGuire <lynnmcguire5@gmail.com> - 2022-08-23 17:36 -0500
Re: struct Sam Varshavchik <mrsam@courier-mta.com> - 2022-08-23 20:48 -0400
Re: struct Öö Tiib <ootiib@hot.ee> - 2022-08-24 00:20 -0700
| From | Mr Flibble <flibble@reddwarf.jmc.corp> |
|---|---|
| Date | 2022-08-23 22:34 +0100 |
| Subject | struct |
| Message-ID | <20220823223421.0000455d@reddwarf.jmc.corp> |
Consider using struct instead of class if you don't have a class invariant. Also, adding a public member function to a class actually reduces encapsulation -- prefer free functions instead. Message ends. /Flibble
[toc] | [next] | [standalone]
| From | Lynn McGuire <lynnmcguire5@gmail.com> |
|---|---|
| Date | 2022-08-23 17:36 -0500 |
| Message-ID | <te3kpr$33nnc$1@dont-email.me> |
| In reply to | #86015 |
On 8/23/2022 4:34 PM, Mr Flibble wrote: > Consider using struct instead of class if you don't have a class > invariant. > > Also, adding a public member function to a class actually reduces > encapsulation -- prefer free functions instead. > > Message ends. > > /Flibble Why ? Lynn
[toc] | [prev] | [next] | [standalone]
| From | Sam Varshavchik <mrsam@courier-mta.com> |
|---|---|
| Date | 2022-08-23 20:48 -0400 |
| Message-ID | <cone.1661302121.291874.124785.1004@monster.email-scan.com> |
| In reply to | #86016 |
[Multipart message — attachments visible in raw view] — view raw
Lynn McGuire writes: > On 8/23/2022 4:34 PM, Mr Flibble wrote: >> Consider using struct instead of class if you don't have a class >> invariant. >> >> Also, adding a public member function to a class actually reduces >> encapsulation -- prefer free functions instead. >> >> Message ends. >> >> /Flibble > > Why ? Because sometimes when people get bored they post bullshit to Usenet.
[toc] | [prev] | [next] | [standalone]
| From | Öö Tiib <ootiib@hot.ee> |
|---|---|
| Date | 2022-08-24 00:20 -0700 |
| Message-ID | <30df941d-de8f-4196-979e-49bc1bd844efn@googlegroups.com> |
| In reply to | #86017 |
On Wednesday, 24 August 2022 at 03:48:59 UTC+3, Sam Varshavchik wrote: > Lynn McGuire writes: > > > On 8/23/2022 4:34 PM, Mr Flibble wrote: > >> Consider using struct instead of class if you don't have a class > >> invariant. > >> > >> Also, adding a public member function to a class actually reduces > >> encapsulation -- prefer free functions instead. > >> > >> Message ends. > >> > >> /Flibble > > > > Why ? > Because sometimes when people get bored they post bullshit to Usenet. That assertion is true but is unlikely to asked question. Bullshit means that people are saying things that they have no idea themselves if those are true, false, self-contradicting or ambiguous. Mr Flibble well knows how to use C++ so can't be bullshit. Lynn's question for example was ambiguous ... I did read it like "Why message ends?"
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.c++
csiph-web