View Expanded Templates?

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Dec 18 11:12:26 PST 2015


On 12/18/2015 10:54 AM, Taylor Hillegeist wrote:

 >   pragma(msg, code_generation_function())
 >
 >
 > simple + awesome.

Yes, and perhaps unittest blocks:

unittest
{
     assert(makeCode("foo") == "int foo = 42;");
}

Unfortunately, neither works with template mixins or regular templates.

Ali



More information about the Digitalmars-d-learn mailing list