|
|
|
|
|
by dpark
1 day ago
|
|
> instead of no type, as is normal in Ruby, or `void`, which is the C equivalent* “void *” is not the equivalent of “no type” from Ruby. “void *” says “I operate on raw memory”. It says exactly the same thing as “byte *”. For sure you should generally not write a function that accepts a “void *” and then internally casts it to some concrete pointer type and operates on that type, but the problem there is the internal behavior, not the choice of byte vs void pointer. |
|