Nice. Exactly what I was looking for.
I knew I was missing something tiny.
Now I just need to figure out why that works and I can say I've learned something!
Thanks guys,
Jude
Jude Young:
Are you trying to convert a single-digit number?
> icon = *(toStringz(text(num)));
>
> icon is a char, num is an integer.
import std.stdio;
void main() {
int x = 5; // in [0 .. 10]
char c = cast(char)(x + '0');
writeln(c);
}
Bye,
bearophile