can you initialize a array of POD structs?

Chris Katko ckatko at gmail.com
Sat Jun 18 17:37:44 UTC 2022


````D
struct pair { float x, y;}

pair p[] = [[0, 0], [255, 255], [25,-25]]; //nope
````


More information about the Digitalmars-d-learn mailing list