Skip to content

Native modules (like cPython) #2

@joamag

Description

@joamag

Description

It's important to be able to support native modules just like cPython that allow for interaction with things like sockets (for network).

Implementation

This issue requires the implementation of the object model, just like Lua or Python. Once we have that object model we can ensure proper locals and global values.

typedef struct {
    int t;
    Value v;
} TObject;

typedef union {
    GCObject *gc;
    void *p;
    lua_Number n;
    int b;
} Value;

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestp-mediumMedium priority issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions