Any special features to allow to use Zig in data oriented stuff?
In short, as I understand this,
If I have struct A with Foo, and B with Bar.
Than if I have C which references A and B then C has Foo and Bar in code (but still references other memory allocated for A and B).
From code perspective, C may hold-have Foo and Bar directly, or reference A and B. Code to get Foo and Bar from C is same in any case.
Like Data-Oriented Demo: SOA, composition or via C++ templates.
I am asking it because Zig is very good, at least looks like that. And build in DOD seems suits it.
Any special features to allow to use Zig in data oriented stuff?
In short, as I understand this,
If I have struct A with Foo, and B with Bar.
Than if I have C which references A and B then C has Foo and Bar in code (but still references other memory allocated for A and B).
From code perspective, C may hold-have Foo and Bar directly, or reference A and B. Code to get Foo and Bar from C is same in any case.
Like Data-Oriented Demo: SOA, composition or via C++ templates.
I am asking it because Zig is very good, at least looks like that. And build in DOD seems suits it.