Convert array of simple structs, to C array of values

Dennis dkorpel at gmail.com
Mon Oct 3 07:58:02 UTC 2022


On Monday, 3 October 2022 at 07:45:47 UTC, Chris Katko wrote:
> I know there's gotta be some simple one liner function in D, 
> but I can't think of it.

I don't know if you're looking for type safety, but you can just 
do `cast(float*) values.ptr;` or `cast(float[]) values[]`.


More information about the Digitalmars-d-learn mailing list