How to make a function that accepts optional struct but can accept struct literal too

Basile B. b2.temp at
Sat Oct 16 09:51:06 UTC 2021

On Friday, 15 October 2021 at 20:33:33 UTC, JN wrote:
> Is there some nice way of achieving something like this C99 
> code in D?
> [...]

[literal]( in the C version creates an alloca too but it's hidden.

More information about the Digitalmars-d-learn mailing list