I was just aiming to simplify the idea, but I failed to elaborate more into the example, as I just wanted it to be simple. My bad.
No one is arguing that you didn't go into enough detail. We just pointed out some fundamental flaws in what you posted.
By the way: You should never, ever typedef a pointer. That's an unnecessary level of indirection, and it's something that has no place in your example, because you're not even using it anywhere.
posting bad code as a recommended solution isn't the best idea
Well, yes, but on the other hand, you can't really blame people for not knowing any better.
They think they're posting code that is appropriate from one perspective or another, so they post it, because they want to help. I think that's fine, as long as there are other GameDev members who can point out the flaws, and keep everyone informed.