In Overloading so much I've forgotten C11 and its _Generic I've talked about in Type-generic functions (overloading) in C11.
2017-09-13
Overloading reloaded (C)
2017-09-12
Database crackdown
It was a bright sunny day, or maybe not. Then, suddenly, a system started to misbehave.
2017-09-11
Overloading so much
I suppose that my average readers know what overloading is, but let me give a quick definition: overloading is a feature which allows to reuse (overload) a function name provided that each signature makes each function distinguishable. According to the signature the compiler can pick the right actual code to execute.
2017-03-08
Length at compile time
How do you get the length of a string literal in C?
2016-05-08
Beyond 140
Twitter has the limit of 140 characters per tweet, and this limit is even reduced when you add media contents like images. Now that Twitter is “consumed” through the web, there wouldn't be serious reasons not to rise that limit.
2015-10-20
Microsoft Windows CLSID from shell32.dll (… and a little bit more)
I pull this out from my old site hosted by Capo Nord — gone away. I don’t think this is useful stuff (anymore?), but here it is anyway.
2015-10-17
It's a hard pr0n life
When money will begin to run out and we'll realize (again) that there's no value in it, barter will become the most popular way of exchanging and sharing resources: everyone will trade things for things, instead of promises of things for things.
2015-08-08
Julia (computer language)
Installed Julia, just to take a look at it. (A filler article follows…)
2015-07-11
Android Lollipop annoys me (a little bit)
There's a way of thinking that worries me: a “new operating system” must look graphically different from the previous version of the same operating system. Premise: I have been upgraded to Android (so-called) Lollipop. (Second premise: I own a Samsung Galaxy S4 — something I regret, but it's too late and I'll keep it till I die or till it breaks — whatever happens first).
2015-06-20
Type-generic functions (overloading) in C11
As per Michael Stoffregen suggestion in the comment, I've tried to move arguments outside and it worked (even with gcc 4.9.2)! So I can finally say C(11) has Fortran-like function “overloading” — type generic functions.
I have often wondered why C hasn't any kind of function overloading. The typical answer is that we don't want to live with name mangling in C — the hell of the C++ — that would break a lot of things which must stay as they are. I agree… except that you don't need to implement it the C++ way when you have a bright example like Fortran.
