[Solved] Does ccall really convert arguments passed by pointer?

This turned out to be either a bug in the core library or a very misguided documentation, depending on the perspective (issue #29850). The behavior of the function unsafe_convert changed from version 0.4 to 0.5, in a way that makes it more flexible than what is currently suggested. According to this commit, unsafe_convert changed from … Read more

[Solved] Why exactly can’t function pointers be implicitly converted?

There are implicit and explicit conversions. A cast is always an explicit conversion and uses the (type) cast operator. C has quite decent type safety when it comes to pointers. Apart from the special case of null pointer conversions, the only implicit pointer conversion allowed is between an object pointer and a pointer to void. … Read more