How to use ".stringof" to get the value of a variable and not the name of the variable (identifier) itself?

rempas rempas at tutanota.com
Sat Oct 14 06:48:40 UTC 2023


On Friday, 13 October 2023 at 10:11:33 UTC, Nick Treleaven wrote:
>
> You can also do it using a string mixin:
>
>     mixin(create_fn!(mixin("`", i, "`")));
>
> I think that's equivalent to `i.stringof` anyway.

Thank you for the info!


More information about the Digitalmars-d-learn mailing list