3 ms·
You can disable the default constructor on structs with @disable this(); Then the only proper way to initialize the struct is with its parameterized constructor
by FeepingCreature 8y ago
You can disable the default constructor on structs with @disable this(); Then the only proper way to initialize the struct is with its parameterized constructor.