Zig NEWS

Discussion on: Zig files are structs

Collapse
 
webermartin profile image
weber-martin

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.

Collapse
 
gowind profile image
Govind

Thanks, I did not notice this in the std. documentation ! Leaving this here anyway for someone if they are interested.