๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by BONITA MONTERO Thu, 19 Nov 2026 14:06
Re: Inversion-of-control and dependency-injection in C
#1732
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads