Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import std.stdio;
- mixin template stringConstruct () {
- public this (string a) { writeln(a); }
- }
- class testClass {
- mixin stringConstruct;
- }
- int main (string [] args) {
- auto b = new testClass("aaa");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement