sdzx-1
1
The struct type can treat the entire file as a struct here. Is there a similar syntax for enum type?
sdzx-1
2
I have a large enum type that I would like to be able to put into a separate file and use a similar syntax.
jmc
3
No. Files are implicitly struct
s. You can define the enum
and then import only that one, if you want:
const AtmSt = @import("atm.zig").AtmSt;
3 Likes