Skip to content

Struct binding with empty constructor fail #101

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
}

Activity

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

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