Am 12.09.2024 um 15:20 schrieb Kenny McCormack:
It has always been CLC policy that C++ is just as off-topic as Fortran or
C# or any other language (other than C, of course). And, of course, that
being "off topic" is the highest and most unforgivable sin.
A switch to C++ is much more likely than to Fortran.
C and C++ are programmed with the same mindset.
Am 12.09.2024 um 17:40 schrieb Janis Papanagnou:
Programming C++ with only a "C" mindset I'd not consider advisable.
That's what I've generally observed; with sole knowledge of X there
seems to be an impetus and preference to infer those techniques to
programming in Y. A lot of early C++ programs I've seen were just,
umm, "enhanced" "C" programs.
I'm using most new language facilities, but the mindset is still the same.
A lot of early C++ programs I've seen were just, umm, "enhanced" "C" programs.
On Thu, 12 Sep 2024 17:40:17 +0200, Janis Papanagnou wrote:
A lot of early C++ programs I've seen were just, umm, "enhanced" "C"
programs.
Given that C++ makes “virtual” optional instead of standard behaviour, I’d
say that C++ is in fact designed to be used that way.
On Thu, 12 Sep 2024 17:40:17 +0200, Janis Papanagnou wrote:
A lot of early C++ programs I've seen were just, umm, "enhanced" "C"
programs.
Given that C++ makes “virtual” optional instead of standard behaviour, I’d
say that C++ is in fact designed to be used that way.
On 9/12/24 18:32, Lawrence D'Oliveiro wrote:
On Thu, 12 Sep 2024 17:40:17 +0200, Janis Papanagnou wrote:
A lot of early C++ programs I've seen were just, umm, "enhanced" "C"
programs.
Given that C++ makes “virtual” optional instead of standard behaviour, >> I’d say that C++ is in fact designed to be used that way.
Like many other aspects of C++, that was dictated by a necessity of
remaining a certain minimum level of backwards compatibility with
existing C code.
On 13.09.2024 00:32, Lawrence D'Oliveiro wrote:
On Thu, 12 Sep 2024 17:40:17 +0200, Janis Papanagnou wrote:
A lot of early C++ programs I've seen were just, umm, "enhanced" "C"
programs.
Given that C++ makes “virtual” optional instead of standard behaviour, >> I’d say that C++ is in fact designed to be used that way.
There's different semantics with and without a 'virtual' specification.
On Thu, 12 Sep 2024 17:40:17 +0200, Janis Papanagnou wrote:
A lot of early C++ programs I've seen were just, umm, "enhanced" "C"
programs.
Given that C++ makes “virtual” optional instead of standard behaviour, I’d
say that C++ is in fact designed to be used that way.
On 13.09.2024 00:32, Lawrence D'Oliveiro wrote:
On Thu, 12 Sep 2024 17:40:17 +0200, Janis Papanagnou wrote:
A lot of early C++ programs I've seen were just, umm, "enhanced" "C"
programs.
Given that C++ makes “virtual” optional instead of standard behaviour, I’d
say that C++ is in fact designed to be used that way.
There's different semantics with and without a 'virtual' specification.
Even if you want polymorphism (and have to use 'virtual') there's no
need to define it as _default_ (and "disable" it where unnecessary).
On Thu, 12 Sep 2024 18:50:11 -0400, James Kuyper wrote:
On 9/12/24 18:32, Lawrence D'Oliveiro wrote:
On Thu, 12 Sep 2024 17:40:17 +0200, Janis Papanagnou wrote:
A lot of early C++ programs I've seen were just, umm, "enhanced"
"C" programs.
Given that C++ makes “virtual” optional instead of standard
behaviour, I’d say that C++ is in fact designed to be used that
way.
Like many other aspects of C++, that was dictated by a necessity of remaining a certain minimum level of backwards compatibility with
existing C code.
No it wasn’t. OO was an entirely new feature, with no counterpart in
C, so there was nothing to maintain “backwards compatibility” with.
On Fri, 13 Sep 2024 04:06:58 +0200, Janis Papanagnou wrote:
On 13.09.2024 00:32, Lawrence D'Oliveiro wrote:
On Thu, 12 Sep 2024 17:40:17 +0200, Janis Papanagnou wrote:
A lot of early C++ programs I've seen were just, umm, "enhanced" "C"
programs.
Given that C++ makes “virtual” optional instead of standard behaviour, >>> I’d say that C++ is in fact designed to be used that way.
There's different semantics with and without a 'virtual' specification.
Precisely. And consider what the meaning of a non-virtual destructor is:
it is essentially always the wrong thing to do.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 34:46:57 |
| Calls: | 12,109 |
| Files: | 15,006 |
| Messages: | 6,518,342 |