import std.stdio;
int x; template smth() { void smth(){x = 1;} } void main() { int x; mixin smth;//why it compiles? smth is a regular template smth(); writeln(.x); writeln(x); readln(); }
import std.stdio;
int x; template smth() { void smth(){x = 1;} } void main() { int x; mixin smth;//why it compiles? smth is a regular template smth(); writeln(.x); writeln(x); readln(); }