Re: Anything like C99 compound literals in D?

2018-02-09 Thread Seb via Digitalmars-d
On Friday, 9 February 2018 at 12:14:52 UTC, John Burton wrote: This is just an example... In windows WNDCLASS is a struct and RegisterClass is a function that takes a pointer to an instance of that class. In C99 I can use "compound literals" to write this and have it construct an instance

Re: Anything like C99 compound literals in D?

2018-02-09 Thread Nicholas Wilson via Digitalmars-d
On Friday, 9 February 2018 at 12:14:52 UTC, John Burton wrote: This is just an example... In windows WNDCLASS is a struct and RegisterClass is a function that takes a pointer to an instance of that class. In C99 I can use "compound literals" to write this and have it construct an instance