Extern FFI modules #43

Open
opened 2025-02-03 10:26:09 +01:00 by belka · 0 comments
Owner

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), a module (normal library code) or an interface (extern definitions).

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), a `module` (normal library code) or an `interface` (extern definitions).
belka added the
self-hosted
bootstrap
labels 2025-02-03 10:26:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: belka/elna#43
No description provided.