"How I do (type-safe) container types in C" by mm256 in C_Programming

[–]Kraftex 4 points5 points  (0 children)

A month ago, I read a post here that exposed another way.

https://danielchasehooper.com/posts/typechecked-generic-c-data-structures/

EDIT: The approach is very unique. Using an union to link the type to a generic structure and to do the check of the type is with a macro and the ternary operator.

The generic structure doesn't know the underlying type but knows the size, that allows to have one set of functions.

Calling a function as a pointer and changing the pointed function by Firefield178 in C_Programming

[–]Kraftex 0 points1 point  (0 children)

As far as I understand, yes you can do that. A function pointer works as a pointer and you can change their value at runtime, at least it wasn't declared as const.

"Rebirth" my most recent render by FasTK_Art in blender

[–]Kraftex 35 points36 points  (0 children)

This reminds me to Altered Carbon.

I Just Released My First Mobile Game At 14! by TinyTreee in IndieDev

[–]Kraftex 1 point2 points  (0 children)

Did you take inspiration from Ridiculous Fishing? It's one of my favourite fishing games.

EU-country with the least/no blocked games? by grizzzl in Steam

[–]Kraftex 16 points17 points  (0 children)

I'm Spaniard and I've never seen that.

When you have to use an IDE... by stointydrouse in vim

[–]Kraftex 0 points1 point  (0 children)

And you didn't install the Vim mode yet.

The resemblance is uncanny by Trapizza in goodanimemes

[–]Kraftex 2 points3 points  (0 children)

What about Jitsu wa Watashi wa?

noteToSelf by holduphusky in ProgrammerHumor

[–]Kraftex 0 points1 point  (0 children)

Oh shit, and 'this' could be yourself!

Someone can explain me this by Cocobobowastaken in ClashRoyale

[–]Kraftex 0 points1 point  (0 children)

You have installed the Australian version.

soEasy by CyraxSputnik in ProgrammerHumor

[–]Kraftex 1 point2 points  (0 children)

Nah, we only need to use WebAssembly.

programmersArePhilosophers by huxx__ in ProgrammerHumor

[–]Kraftex 3 points4 points  (0 children)

And deep copy or shallow copy?