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

bachmeier no at spam.net
Tue Oct 10 16:11:57 UTC 2023


On Tuesday, 10 October 2023 at 13:55:44 UTC, rempas wrote:
> On Tuesday, 10 October 2023 at 11:46:38 UTC, Hipreme wrote:
>> My engine has its own implementation of toString(long), which 
>> does not have dependency with the C runtime:
>>
>> https://github.com/MrcSnm/HipremeEngine/blob/master/modules/util/source/hip/util/conv.d#L180C1-L208C2
>>
>> I have reimplemented the entire conv module since it is one of 
>> mostly used module and it pulled down a lot of things, so, 
>> with my util module I was able to make my program much smaller 
>> too.
>
> Thank you for the idea! However, your code used Phobos which I 
> don't want to use so it will not do.

Which part uses Phobos? The linked function compiles without 
importing anything.


More information about the Digitalmars-d-learn mailing list