How to "stringnify"?

bauss jj_1337 at live.dk
Mon Oct 11 06:58:50 UTC 2021


On Sunday, 10 October 2021 at 09:51:27 UTC, rempas wrote:
> On Sunday, 10 October 2021 at 08:48:21 UTC, Imperatorn wrote:
>>
>> For simple stuff you have .stringof
>
> Thanks!

Just remember .stringof is not "literal" as in there are certain 
expression that won't return exactly what you're trying to 
"stringify" ex. aliases etc. will actually return what they're an 
alias of etc. there are many other exceptions too.

In general it will return just what you write, but not in all 
cases.


More information about the Digitalmars-d-learn mailing list