Re: valgrind leak I can't find

Liste des GroupesRevenir à l c 
Sujet : Re: valgrind leak I can't find
De : bluemanedhawk (at) *nospam* invalid.invalid (Blue-Maned_Hawk)
Groupes : comp.lang.c
Date : 24. Aug 2024, 13:47:02
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <pan$8db48$12dfbf80$ce60889d$2a8f67fc@invalid.invalid>
References : 1 2 3 4
User-Agent : Pan/0.154 (Izium; 517acf4)
Annada Behera wrote:

On Thu, 2024-08-22 at 08:18 -0300, Thiago Adams wrote:
>
<snip/>
 
C++ made the usage of 'this->' optional when calling member functions.
 
As a result, when C++ programmers encounter 'i' in the middle of a
function, they might not know where it comes from.
 
If 'this->' were not optional, 'this->i' would clarify that.
 
To avoid confusion, many C++ programmers use prefixes like 'm_' that
can't be ignored.
 
Since many C programmers also work in C++, this pattern can sometimes
influence C code as well.
 
Although I think this is stupid thing to do when writing C, the same
convention also exits in Python PEP-8 [1]
 
    _single_leading_underscore: weak “internal use” indicator. E.g. from
    M import * does not import objects whose names start with an
    underscore.
 
[1]: https://peps.python.org/pep-0008/#descriptive-naming-styles

That's an entirely different convention that is much more common cross-
linguistically.  I've seen a good bit of C code that's used that for
various parts of interfaces that need to be given separate names, but
aren't meant to be used directly, such as identifiers constructed in the
expansion of a macro.  I've personally taken to the habit of naming macros
used exclusively to get other macros to work with the name of the macro
they're making work prefixed by a number prefixed with an underscore.



--
Blue-Maned_Hawk│shortens to Hawk│/blu.mɛin.dʰak/│he/him/his/himself/Mr.
blue-maned_hawk.srht.site
Made with inadequate loophole sealant!

Date Sujet#  Auteur
22 Aug 24 * valgrind leak I can't find26Mark Summerfield
22 Aug 24 +- Re: valgrind leak I can't find1Ben Bacarisse
22 Aug 24 +* Re: valgrind leak I can't find11Bart
22 Aug 24 i`* Re: valgrind leak I can't find10Thiago Adams
22 Aug 24 i `* Re: valgrind leak I can't find9Annada Behera
22 Aug 24 i  +* Naming conventions (was Re: valgrind leak I can't find)6Janis Papanagnou
22 Aug 24 i  i`* Re: Naming conventions (was Re: valgrind leak I can't find)5Thiago Adams
23 Aug 24 i  i +- Re: Naming conventions (was Re: valgrind leak I can't find)1Janis Papanagnou
23 Aug 24 i  i `* Re: Naming conventions (was Re: valgrind leak I can't find)3James Kuyper
25 Aug 24 i  i  `* Re: Naming conventions (was Re: valgrind leak I can't find)2Janis Papanagnou
26 Aug 24 i  i   `- Re: Naming conventions (was Re: valgrind leak I can't find)1James Kuyper
24 Aug 24 i  `* Re: valgrind leak I can't find2Blue-Maned_Hawk
24 Aug 24 i   `- Re: valgrind leak I can't find1Keith Thompson
22 Aug 24 +- Re: valgrind leak I can't find1Stefan Ram
22 Aug 24 +- Re: valgrind leak I can't find1Ike Naar
22 Aug 24 +- Re: valgrind leak I can't find1Stefan Ram
22 Aug 24 +- Re: valgrind leak I can't find1Kaz Kylheku
22 Aug 24 `* Re: valgrind leak I can't find9Mark Summerfield
22 Aug 24  +- Re: valgrind leak I can't find1Kaz Kylheku
23 Aug 24  +* Re: valgrind leak I can't find6Stefan Ram
23 Aug 24  i`* Re: valgrind leak I can't find5Bart
23 Aug 24  i `* Re: valgrind leak I can't find4Michael S
23 Aug 24  i  +* Re: valgrind leak I can't find2James Kuyper
23 Aug 24  i  i`- Re: valgrind leak I can't find1James Kuyper
23 Aug 24  i  `- Re: valgrind leak I can't find1David Brown
23 Aug 24  `- Re: valgrind leak I can't find1James Kuyper

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal