Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: Safety of casting from 'long' to 'int'
Date: Fri, 08 May 2026 16:56:09 -0700
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <86v7cxsbfq.fsf@linuxsc.com>
References: <10su8cn$am9i$1@dont-email.me> <10te56b$rpfu$1@dont-email.me> <10tfclh$7vb$1@reader1.panix.com> <10tflij$19d6u$1@dont-email.me> <10tg55j$kvp$1@reader1.panix.com> <10tgfs8$1i2g4$1@dont-email.me> <10tlj1h$129ms$1@paganini.bofh.team> <10tlm9r$37dfl$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Fri, 08 May 2026 23:56:11 +0000 (UTC)
Injection-Info: dont-email.me; logging-data="3469104"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QGyoPK94K5dBICku/Hm+undUnDcNN8D8="; posting-host="12a84863e630bdf33525bc8ffa10a418"
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:/cSUVIfGpwkmv1I9pjKIAk93Oa0= sha1:zDgm4y9pPOnuOnOi6CmY9eSp1qs= sha256:64CnKIFP+GTTkeEaKNkQ42G414OPT3+/GCgGe+e6m38= sha1:btuEwmu/cvbUMBFUtD9MjE1Souo=
Xref: csiph.com comp.lang.c:398558
Bart writes:
[... discussing #include files and module systems ...]
> So what happened since the late 70s? We're still doing independent
> compilation, still doing linking, still use makefiles. In fact its
> got a lot more complex rather than simpler.
>
> And in C (since the the comparison was with that) we STILL have
> massive sets of header files per library (nobody has managed to
> reduce them to a single compact file for production use) that has
> to be re-processed by every module of a project that uses even one
> entity in the library.
Languages with distinct modules and interfaces have their own
problems. Neither approach is perfect; each has its own pluses
and minuses.