"Walter Bright" <[email protected]> wrote in message
news:[email protected]...
> On 7/12/2011 7:21 PM, Brad Roberts wrote:
>> On 7/12/2011 1:20 AM, KennyTM~ wrote:
>>> I've just opened a pull request* to enable std.stdio.writeln in CTFE.
>>> Any comments?
>>>
>>> *: https://github.com/D-Programming-Language/dmd/pull/237
>>
>> Unless it supports everything that the runtime version does, using the
>> same name is a bad idea, imho.
>
> I agree with Brad, though I need to look at the actual pull request.
>
> There's also pragma(msg, "hello at compile time").
That's insufficient:
enum x = foo("abc");
string foo(string a)
{
a ~= "def";
// printf-debug a CTFE:
pragma(msg, "a: "~a); // <-- Big Fail
return a;
}