Re:Show HN: The C3 programming language (C alternative langu...
by mort96 on Tuesday April 08, 2025 @05:20AM
(#43619750)
Why would I think that structs are objects?
I'm using "object" as it is commonly used; essentially a value. In e.g Java or C or C++, the struct/class is a type, and an instance of the struct/class is an object.
Accessing an object's members is a different operation from looking up a symbol in a namespace. Even in Zig.
Do you mean object like object file (to be linked)? Those don't have member functions as far as I know.