What? and just disregard the digital buoyancy of the two types? They're separated for a reason. In time-sensitive/realtime applications when you need a buoyant value, you NEED to use a floating-point rather than a pointer. And vice versa for GPU-specific non-buoyant values. Please don't confuse the matter with a joke, the struggle is real.
41
u/Badel2 Oct 21 '18
Jokes on you, that's known as NaN Boxing and it's pretty useful.
101
u/Sebbe Oct 21 '18
Be careful, though. When using floating point, you need to remember to tie down your pointers, or they'll float away.
18
u/animalvgamer Oct 21 '18
What about reinterpretting pointer values as floats? We can go deeper c:<
3
u/[deleted] Oct 21 '18
Floating pointers are best pointers
3
u/xcrissxcrossx Oct 21 '18
Real intellectuals type cast pointers as char arrays
2
u/yorgle Oct 21 '18
What? and just disregard the digital buoyancy of the two types? They're separated for a reason. In time-sensitive/realtime applications when you need a buoyant value, you NEED to use a floating-point rather than a pointer. And vice versa for GPU-specific non-buoyant values. Please don't confuse the matter with a joke, the struggle is real.