Skip to content

Struct binding with empty constructor fail #101

@SrMordred

Description

@SrMordred

Minimal example (without the imports)

class MyClass{
    this(){  }
};
struct MyStruct{
};
void main(){
    auto lua = new LuaState;
    lua.openLibs();
    lua["MyClass"]  = lua.registerType!MyClass();
    lua["MyStruct"] = lua.registerType!MyStruct();
    lua.doString("local x  = MyClass();"); //work
    lua.doString("local y  = MyStruct();"); //fail
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions