When D feels unfinished: union initialization and NRVO

Jacob Carlborg doob at me.com
Thu Mar 19 18:41:07 UTC 2020


On 2020-03-19 11:17, Mathias Lang wrote:

> but as often, the solution is to 
> turn a runtime parameter into a compile time one and to add another 
> level of indirection.

If you don't use static initialization and instead assign the fields one 
by one it should work without the indirection.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list