Skip to content

Native modules (like cPython) #2

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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