Plot2kill 0.2
Nick Sabalausky
a at a.a
Fri Mar 11 21:38:52 PST 2011
"Simon" <s.d.hammett at gmail.com> wrote in message
news:ile8be$4as$1 at digitalmars.com...
> On 11/03/2011 21:33, Nick Sabalausky wrote:
>> "dsimcha"<dsimcha at yahoo.com> wrote in message
>>
>> Unfortunately that makes debugging CTFE a royal pain in the ass since
>> CTFE
>> has absolutely zero way to send anything to stdout - or any other IO for
>> that matter. And you can't work around it by appending to a log to then
>> display at runtime because CTFE deliberately disallows any global mutable
>> state *even* when order-of-evaluation doesn't matter for what you're
>> trying
>> to do.
>>
>>
>
> huh?
>
> just use:
>
> pragma(msg, CTFE_string);
>
> piss of piss.
>
s/piss/shit/
void foo(string str)
{
pragma(msg, str);
}
enum x = foo("fubared");
Try it. Big fail.
More information about the Digitalmars-d-announce
mailing list