static code generation
Ali Çehreli
acehreli at yahoo.com
Mon Dec 10 14:01:37 PST 2012
On 12/10/2012 01:52 PM, js.mdnq wrote:
> I want to avoid having to wrap the code with "
> " as it disables highlighting and possibly other features(intellisense,
> etc...))
The q{} syntax is supposed to help with that issue. Emacs manages syntax
highlighting correctly for the q{} strings:
import std.stdio;
void main()
{
enum s = q{
writeln("hello world");
};
mixin (s); // <-- s is a string
}
Ali
More information about the Digitalmars-d-learn
mailing list