Awesome!!Thanks Gary and namespace (and obviously i gotta improve my google-fu).
dan On Sunday, 17 May 2015 at 19:40:10 UTC, Gary Willoughby wrote:
On Sunday, 17 May 2015 at 18:58:32 UTC, Namespace wrote:http://dlang.org/operatoroverloading.html#function-callLike this: module main; import std.stdio; class F { int opCall(int value) { return value * 2; } } void main(string[] args) { auto f = new F(); writeln("The value of f at 7 is ", f(7)); }