Structure of Arrays vs Array of Structures
Stanislav Blinov via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue May 23 09:55:55 PDT 2017
On Tuesday, 23 May 2017 at 16:48:31 UTC, Nordlöw wrote:
> On Tuesday, 23 May 2017 at 16:46:18 UTC, Nordlöw wrote:
>> http://forum.dlang.org/post/wvulryummkqtskiwrusb@forum.dlang.org
>
> Correction; should be:
>
> https://github.com/nordlow/phobos-next/blob/a324f16515bd1c3c1185ba0482dae2886d811bb1/src/soa.d
What if you instantiate it with a nested struct? What about
structs that themselves aggregate other structs? What about
custom operators on such structs?..
As I said earlier, generic solution is not easy. The
implementation you have is very niche, certainly not "std.".
More information about the Digitalmars-d-learn
mailing list