๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1732

Re: Inversion-of-control and dependency-injection in C

#1732
From: BONITA MONTERO
Date: Thu, 19 Nov 2026 14:06
28 lines
2428 bytes
  To: COMP.LANG.C
From Newsgroup: comp.lang.c

Am 19.11.2026 um 10:13 schrieb fir:

> youre so lame you dont understand what you talking - youre comparing 
> implementating a library in c to implementating in in c++
> or youre comparing caling one in c to one in c++?

Study C++ containers like unorderdered_map<>, then you may understand
what I mean.

> overally teh implementation of containers in c its not so hard as you 

> think.. ...
Look at the count of methods in unordered_map<>:
	https://en.cppreference.com/cpp/container/unordered_map
Do you think you could implement that so easy ?
With C++ it's a one-liner to specialize this generic class to
a user-defined key- / value-pair. With C it's a week's work;
or you do it the poor stype with callbacks like with qsort().
And we've seen the performance difference between qsort() and
std::sport - factor six.

--- Synchronet 3.19b-Linux NewsLink 1.113
 รพ Synchronet รพ Mythical Kingdom
--- Synchronet 3.19b-Linux NewsLink 1.113
 *  Mythical Kingdom SBBS - Dayton OH - telnet://bbs.mythicalkingdom.com
Technical Details
Message-ID: <6B00B395.43243.usenet_complane@bbs.mythicalkingdom.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!mk.eternal-september.org!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!mk.eternal-september.org!.POSTED!not-for-mail
From: "BONITA MONTERO" <bonita.montero@LION.remove-eeq-this>
Newsgroups: comp.lang.c
Subject: Re: Inversion-of-control and dependency-injection in C
Date: Thu, 19 Nov 2026 14:06:00 +0000
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <6B00B395.43243.usenet_complane@bbs.mythicalkingdom.com>
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 20 Nov 2026 22:20:11 +0000 (UTC)
Injection-Info: mk.eternal-september.org;
	logging-data="3787638"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/J27ZLhTmnhrdNfgpG9Scr6YKN1P1Zfpg="; posting-host="40b0ebdbc249f0e2cc641fd67dcd0032"
Cancel-Lock: sha1:dYfW3Xb8hozkG/a5EzDPUiKw+RI= sha256:sy15GrtCZB0HHR90+DVLjN0mVH3KrZGqRVSyw2hwTkA=
	sha1:jeFG2iCndMYikr2RKuPrOAZiQ8E= sha256:GPxE5aWoLt6TK9AR/XXR5F3TZKQ8GWAyr3nQORJkkGo=
X-FTN-CHRS: CP437 2
X-Comment-To: COMP.LANG.C
X-FTN-PID: Synchronet 3.19b-Linux HEAD/6b10fdc41 Feb 18 2022 GCC 9.3.0
X-Gateway: bbs.mythicalkingdom.com [Synchronet 3.19b-Linux NewsLink 1.113]