This is also documented here: ziglang.org/documentation/0.9.1/#i...
Zig source files are implicitly structs, with a name equal to the file's basename with the extension truncated. @import returns the struct type corresponding to the file.
Thanks, I did not notice this in the std. documentation ! Leaving this here anyway for someone if they are interested.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
Take off every Zig!
This is also documented here: ziglang.org/documentation/0.9.1/#i...
Thanks, I did not notice this in the std. documentation ! Leaving this here anyway for someone if they are interested.