How to return a reference to structs?

Andrey Zherikov andrey.zherikov at gmail.com
Fri Nov 5 20:13:02 UTC 2021


On Friday, 5 November 2021 at 19:49:50 UTC, Ali Çehreli wrote:
> Indexes are typed as size_t, which is ulong for 64-bit and uint 
> for 32-bit. If idx elements were indeed indexes, it should have 
> been typed as size_t:
> 
> size_t[] idx = [1,3,4];  // <-- Here


Ah, good point. Thanks!


More information about the Digitalmars-d-learn mailing list