#Import with `-file`
18 messages · Page 1 of 1 (latest)
Because you asked to import a file, and not a directory.
AND .odin files within the same directory must have the same package name.
Trust me, it's the opposite.
import will always import a directory. You can't import just a single file. -file only applies to the file passed to odin build
What would be wrong with treating single files as modules?
Ill defined concept that does not scale
Hmm yeah, that might be true
Sure, and I trust you - but I don't need scaling here, I just wanted a few odin files that mostly do their own thing, but now I needed some stuff from another, which doesn't work
that's why it's a little annoying
not that big of a deal though, I'm probably better off refactoring before it becomes a mess anyway