|
|
|
|
|
by kazinator
2428 days ago
|
|
Are you saying that the FFI transparently renames identifiers, so you think you're calling foo_bar, but the actual foreign function is FooBar, with no traces of FooBar in the program (like in some definition which indicates that the two are mapped together)? If so, that's an incredibly bad idea. If a program calls some foreign function called FooBar, the identifier FooBar better appear somewhere in it, if you know what's good for the maintainer seven years from now. |
|
Again, the theory can be argued endlessly. In practice, it just works.