3 ms·
Sure, I’ll be more specific: there’s no glue code for function calls. Whatever function you want to call doesn’t need to be declared up front, you just call it
by oefrha 7y ago
Sure, I’ll be more specific: there’s no glue code for function calls. Whatever function you want to call doesn’t need to be declared up front, you just call it at runtime, and it’s looked up dynamically. However, data structures like arrays and structs need to be declared, if needed.
- atilaneves 7y agoSo... ctypes requires writing glue code. The solution in the article doesn't. "if needed" means "needed with any and all C APIs one would be interested in".