Hah, got it working!
So in the other file you don't have to do anything. In the /main/ file you have to do "mod foo;" and then "use foo::*;"
I don't know, maybe I should just use C++ and avoid the things I really hate like the "cout <<" thing.
What's a good object-oriented language that
– isn't C++ or Java or Python
– can call C libraries
– either can be used with stuff in most Linux package managers, or be statically linked?
Rust is tempting, but it's also got a bit of a learning curve. I'd use Swift, but it's not in package managers and I can't statically link it, so I can't really distribute binaries to people.
Oh and ideally this'd be callable from C, so I can use whatever language; I don't really know C++.
Looking at you, snap and .NET respectively.
Hi, I'm Frost! I'm a wolf of varying fur colors and sometimes mechanical.