Re: Search for the dialog library
On Saturday, 14 October 2023 at 23:02:34 UTC, Alexander Zhirov wrote: Colleagues, tell me, please, is there any library on D for drawing [dialog](https://invisible-island.net/dialog/images/dialog.png) boxes using the dialog library, like in Python [pythondialog](https://pypi.org/project/pythondialog/)? Since it's a c lib you could try either ctod, ImportC, DPP, dstep or ohmygentool. Or just link with it and use what you need. There's also that cpp2d converter in Visual D you could try, but I don't know how good it works.
Search for the dialog library
Colleagues, tell me, please, is there any library on D for drawing [dialog](https://invisible-island.net/dialog/images/dialog.png) boxes using the dialog library, like in Python [pythondialog](https://pypi.org/project/pythondialog/)?
Re: How to use ".stringof" to get the value of a variable and not the name of the variable (identifier) itself?
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!
Re: How to use ".stringof" to get the value of a variable and not the name of the variable (identifier) itself?
On Tuesday, 10 October 2023 at 16:11:57 UTC, bachmeier wrote: Which part uses Phobos? The linked function compiles without importing anything. Actually, you are right. I didn't give a lot of thought to it, as there is the line `char[] ret = new char[](length);` but I can replace it with an external buffer. Anyway, I'm not trying to do that anymore, and I will also create my own `int_to_string` method in the future but thanks for pointing it out!