Article View: comp.lang.c
Article #1488Re: Inversion-of-control and dependency-injection in C
From: Bonita Montero
Date: Thu, 12 Nov 2026 19:38
Date: Thu, 12 Nov 2026 19:38
11 lines
1894 bytes
1894 bytes
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.
Technical Details
Message-ID:
<11d54jb$80v7$1@raubtier-asyl.eternal-september.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mailReferences:
<yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero <Bonita.Montero@gmail.com> Newsgroups: comp.lang.c Subject: Re: Inversion-of-control and dependency-injection in C Date: Thu, 12 Nov 2026 20:38:19 +0100 Organization: A noiseless patient Spider Lines: 11 Message-ID: <11d54jb$80v7$1@raubtier-asyl.eternal-september.org> References: <yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 12 Nov 2026 19:38:19 +0000 (UTC) Injection-Info: raubtier-asyl.eternal-september.org; logging-data="263143"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BPYdadDDpt0akKASeYC77gu+mM7LupBU="; posting-host="355761e7c6a1b96d1268ea2599da227f" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:mUTd4qtQLUOgm9Pn2YWKUXyS+cU= sha256:KyBAP1rJxeyI9we/itQyslkOq2D/99FWyqqiL6+8uYU= sha1:MG/hfCD/O4Mweg7J237yGRu7BMw= sha256:BVCB+b0prxWyD8lw1XlXMJ3U3/wO6IjPdzPgsqeGkHo= In-Reply-To: <yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com> Content-Language: de-DE