On 2014-01-01 04:24, Dylan Knutson wrote:
Ah yeah, I quite like that. I tried to implement the `var.should_bort!bool` syntax, but I can't pass an additional type parameter to opDispatch, other than the string of the method it's dispatching to. Is there a way to do that? Something like this:struct Params { private: Variant[string] vars; public: T opDispatch(string op, T)() @property { return vars[op].get!T; } }
I was pretty sure that was possible, but apparently it doesn't compile. -- /Jacob Carlborg
