Recent

Author Topic: How C++ class multiple inherit and namespace to ObjFPC?  (Read 2682 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 16631
  • Kallstadt seems a good place to evict Trump to.
Re: How C++ class multiple inherit and namespace to ObjFPC?
« Reply #15 on: January 26, 2025, 05:20:12 pm »
However,C++ grow more complex as many features announced in C++23 and later standard published.I think long history open-source C/C++ projects like binutils will use C++11 standard as the main standard to write the code.
So in your view what the C++ standard newest version of open-source C/C++ projects like binutils will use(I am writing my C2pas,so I want to know what feature in C++ will be used in these projects)?
It is not multiple inheritance (which is C++ only and not C) The C standards can't be flawed for that.
Multiple inheritance is also not new but part of the very first C++ standards.

The problem it has is scoping. It will bite you eventually.

With the C standards I have basically no problems at all in using newer versions.
But I am sure they don't want the Trumps back...

TYDQ

  • Full Member
  • ***
  • Posts: 115
Re: How C++ class multiple inherit and namespace to ObjFPC?
« Reply #16 on: January 27, 2025, 08:49:05 am »
I think long history open-source C/C++ projects like binutils will use C++11 standard as the main standard to write the code.

GNU Binutils is written in C, not C++ and they won't simply change the language, so if at most they'll change to newer versions of the C standard. But even then the developers will very likely restrain themselves, because GNU Binutils are also available for older systems that don't support newer C standards.
C++ exists in the newer version of binutils.gold(elf-only linker) is developed using C++,we cannot guarantee whether C++ developers join in GNU organization.
Looking into binutils you will find some C++ Source code files(like binutils-2.43/gold/archive.cc).

Thaddy

  • Hero Member
  • *****
  • Posts: 16631
  • Kallstadt seems a good place to evict Trump to.
Re: How C++ class multiple inherit and namespace to ObjFPC?
« Reply #17 on: January 27, 2025, 11:04:36 am »
So you are not referring to the compiler, but that the gold linker has C++ support?
The old linker has also C++ support..... You mix things up.
But I am sure they don't want the Trumps back...

TYDQ

  • Full Member
  • ***
  • Posts: 115
Re: How C++ class multiple inherit and namespace to ObjFPC?
« Reply #18 on: January 28, 2025, 01:23:16 pm »
So you are not referring to the compiler, but that the gold linker has C++ support?
The old linker has also C++ support..... You mix things up.
Yes,my developing c2pas is specialized to C projects such as binutils.
C++ code is out of my c2pas goal,but binutils source code have appeared many C++ codes,so I took them into consideration.
« Last Edit: January 28, 2025, 01:28:37 pm by TYDQ »

 

TinyPortal © 2005-2018