Extern FFI modules #43
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Instead of allowing the particular procedures and variables to be extern, the whole modules can be defined extern. Such modules would include only extern definitions and can import only other extern modules. It automatically creates mapping from extern declarations to a shared library, where the symbols are defined.
To distinguish between FFI modules and normals modules, a module type can be introduced. A module can be a
program
(includes top-level code), amodule
(normal library code) or aninterface
(extern definitions).