How to make a function that accepts optional struct but can accept struct literal too
Basile B.
b2.temp at gmx.com
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?
>
> [...]
The
[literal](https://www.ibm.com/docs/sr/xl-c-and-cpp-aix/13.1.0?topic=operators-compound-literal-expressions) in the C version creates an alloca too but it's hidden.
More information about the Digitalmars-d-learn
mailing list