How to return a reference to structs?
kdevel at vogtner.de
Fri Nov 5 18:44:16 UTC 2021
On Thursday, 4 November 2021 at 11:26:30 UTC, Andrey Zherikov
> I have the following code example:
> A a;
> ulong idx = [1,3,4];
> return idx.map!(_ => a[_]);
How can one make the type of idx's elements portable (compile
with -m32 to see what the problem is)? This seems to be an
surprisingly nontrivial issue at least in C .
More information about the Digitalmars-d-learn