[Issue 2066] New: toString(int) nto CTFE-compatible

Janice Caron caron800 at googlemail.com
Sun May 4 14:57:54 PDT 2008


On 04/05/2008, d-bugmail at puremagic.com <d-bugmail at puremagic.com> wrote:
>  import std.string;
>
>  pragma(msg, toString(42));
>
>  The above program fails to compile, with the error message "cannot evaluate
>  toString(42) at compile time"

You could try

    import std.metastrings;

    pragma(msg, ToString!(42));


More information about the Digitalmars-d-bugs mailing list