enum Format
Nickolay Bukreyev
buknik95 at ya.ru
Thu Jan 11 04:30:50 UTC 2024
On Thursday, 11 January 2024 at 02:21:17 UTC, Walter Bright wrote:
> As for it being a required feature of string interpolation to
> do this processing at compile time, that's a nice feature, not
> a must have.
Importance of the ability to do processing at compile time was
stated by:
* Alexandru
([here](https://forum.dlang.org/post/yxrqncmaiyfmhxnvzgil@forum.dlang.org) and [here](https://forum.dlang.org/post/yqwxvjnvqaahhshrfohy@forum.dlang.org)),
* Timon
([here](https://forum.dlang.org/post/unjfb9$1ku5$1@digitalmars.com)),
* Paolo
([here](https://forum.dlang.org/post/rhpblxrebibhpnfxfihv@forum.dlang.org) and [here](https://forum.dlang.org/post/ajeqtckcwawuvtusbvxb@forum.dlang.org)),
* Steven
([here](https://forum.dlang.org/post/ilituyhcqipsqktqmfor@forum.dlang.org)).
> The enum proposal is to obviate the requirement for a header
> and footer template, which is a big improvement.
Header and footer are not templates; `InterpolatedLiteral` and
`InterpolatedExpression` are. Yes, the latter two can be replaced
by enums iff it becomes possible to pass arbitrary expressions to
alias parameters. And I agree it would be a big improvement.
> Structs with no fields have a size of 1 byte for D and C++
> structs, and 0 or 4 for C structs (depending on the target).
Yes, I mistakenly wrote, _zero-sized_, when I meant, _empty_.
More information about the Digitalmars-d
mailing list