Article View: comp.lang.c
Article #1493Re: Inversion-of-control and dependency-injection in C
From: Chris M. Thomasson
Date: Thu, 12 Nov 2026 20:15
Date: Thu, 12 Nov 2026 20:15
14 lines
1993 bytes
1993 bytes
On 11/12/2026 11:38 AM, Bonita Montero wrote: > Am 12.11.2026 um 18:41 schrieb Ross Finlayson: > >> Hello, dear C experts, I'm hoping you can tell me a story about >> modularity and composability, about the concerns of inversion-of-control >> and dependency-injection in C, basically about wiring >> test-time and run-time targets, for example about conditional-includes >> and various build-targets, probably mostly about function pointers. > Works magnitudes better in C++ with std::function<> and generic > function objects. F.e. when using std::find_if, std::sort etc. > C sucks. > C is C. Imvvvvho, C++ is better... :^) Let the flames begin.
Technical Details
Message-ID:
<11d56pj$8sfe$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com> <11d54jb$80v7$1@raubtier-asyl.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.lang.c Subject: Re: Inversion-of-control and dependency-injection in C Date: Thu, 12 Nov 2026 12:15:45 -0800 Organization: A noiseless patient Spider Lines: 14 Message-ID: <11d56pj$8sfe$1@dont-email.me> References: <yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com> <11d54jb$80v7$1@raubtier-asyl.eternal-september.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 12 Nov 2026 20:15:48 +0000 (UTC) Injection-Info: dont-email.me; logging-data="291310"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Nd5+zf1umScIGKqybLrYdjd8YJ318ZWA="; posting-host="93656593b0eb380777096da46e3e6c37" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:KGShJQqU88lt/8a4XuZoHIYJWdA= sha256:oGNf5n1AOQtaK+Y1KDIAy07txzpzVrsU20VjTe9fGd4= sha1:RHQudBaDDuRNnHipMvACKwugl+o= sha256:mdvFcqz4B+izcDBB+7IR04dzaMUUktclEsJOdch8aOM= In-Reply-To: <11d54jb$80v7$1@raubtier-asyl.eternal-september.org> Content-Language: en-US