Sujet : Re: Word For Today: “Uglification”
De : invalid (at) *nospam* invalid.invalid (Richard Kettlewell)
Groupes : comp.lang.cDate : 14. Mar 2024, 01:32:20
Autres entêtes
Organisation : terraraq NNTP server
Message-ID : <wwvcyrxiu7v.fsf@LkoBDZeT.terraraq.uk>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Keith Thompson <Keith.S.Thompson+
u@gmail.com> writes:
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
On Wed, 13 Mar 2024 22:33:02 GMT, Scott Lurndal wrote:
Third party libraries are allowed to use any mechanism they like to
minimize name conflicts other than prefixing with two underscores.
>
But there is no other such mechanism available.
>
Are you aware that working third party libraries exist, and name
collisions are fairly rare? How do you think that's possible?
>
There are no 100% reliable mechanisms. There are mechanisms that work
well enough in practice, including using library-specific prefixes.
The collisions I recall running into are library headers defining things
like MIN, MAX, TRUE, FALSE - useful in isolation, but a nuisance when
more than one library does it.
Actually the offending headers that spring are mind are supplied by the
implementor of the platform they support, albeit that the headers
involved are not ones specified in standard C.
-- https://www.greenend.org.uk/rjk/