Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import std.stdio;
- import gfm.math.matrix;
- class Foo
- {
- Foo bar(T, int num, bool norm)(string name)
- {
- writeln(counter++);
- writefln("%s %ss, %s for %s", num, T.stringof, norm, name);
- return this;
- }
- uint counter;
- }
- void main()
- {
- auto foo = new Foo;
- foo.bar!(float, 3, false)("first").bar!(float, 2, true)("second");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement