Search

May 21, 2009
General »
...either just calling it like a regular function...prints at run-time
pragma(msg, "Hello World...
May 18, 2009
General »
...with templates I have pragma(msg).

CTFE is...are native to templates, like pattern matching.  So...
May 14, 2009
General »
...allMembers, T).stringof);
pragma(msg, __traits(allMembers, std.stdio).stringof);
--------------------
You'll like the result...
May 08, 2009
Learn »
...pragma messages in various places to see which one was the last seen.

Just like...
May 07, 2009
General »
...correct D code.
But I'd like the pragma to be seen as an instruction...
May 07, 2009
General »
...don't like it much:

static if (true)
    pragma(msg, "true");
else
    pragma(msg, "false...
April 28, 2009
Announce »
...t like that as free function.

I like...import std.metastrings: Format;
pragma(msg, Format!("good...
April 23, 2009
Announce »
...9.  It’s very much like printf & co., except...double	r, i;
} Complex;
#pragma  varargck  type "X...
April 18, 2009
General »
...of a native item, like structs. Not thread...5) > MAX_BLOCK_BYTES)
            pragma(msg, "MemoryPool: Block...
April 09, 2009
General »
...structure supports other operations, like interection, union, difference...pretty syntax by some pragma or export alias...
138 139 140 141 142 143 144 145 146 147 148
Next ›   Last »