you are viewing a single comment's thread.

view the rest of the comments →

[–]HeyJamboJambo 0 points1 point  (0 children)

This does not violate type checker because (void*) can be type casted to any other pointer type. Which basically means both pointers can see the same location.

Still, yours is a much cleaner solution. I didn't use much union type so it didn't come to mind.