Mixins: to!string cannot be interpreted at compile time
David Nadlinger
see at klickverbot.at
Tue Mar 1 04:36:10 PST 2011
On 3/1/11 7:58 AM, Peter Lundgren wrote:
> I'm trying to use mixins to generate an array of numbers that are coprime to a
> statically known value. I've tried the following, but I receive the error:
>
> Error: to(i) ~ ", " cannot be interpreted at compile time
> […]
Maybe I missed something as well, but to me it seems to be a CTFE bug,
because if you split the offending line into two parts, it
result ~= to!string(i);
result ~= ", ";
Please consider filing this to Bugzilla.
David
More information about the Digitalmars-d-learn
mailing list