Earlier quoted context omitted.
Depends. Your module can have top level member fields or declarations. (By convention these modules would be capitalized) and in that case it would be instantiated as a struct (no objects in zig) MyModule.zig somefield: u32, fn get(self: @This()) u32 { return this.somefield; } main.zig const Module = @import("MyModule"); // note there are build parameters necessary to make this a module fn main() void { var x: Module…
I don't understand why you're repeating this. The module is a struct, not an object. That means that in Zig, module lookup and object member lookup are different things. A module is not an object, it is a struct, so looking something up in a module is not looking up a member in an object.
Do you mean object like object file (to be linked)? Those don't have member functions as far as I know.