On Friday, 23 June 2017 at 12:23:23 UTC, Mike wrote:
alias immutable(char)[] string;

string GenString(string a, string b)
{
    return a ~ ", " ~ b;
}

void main()
{
    // `result` is a manifest constant that contains your
    // compile-time string, do as you wish with it
    enum result = GenString("Hello", "World");
}

The problem is, I have to concat a string with an int thus I need to use std.conv. This creates all sorts of problems. Do i really need to create my own itoa function?

Reply via email to