Am Tue, 30 Sep 2014 05:29:55 -0700 schrieb Andrei Alexandrescu <[email protected]>:
> > > Another thought: if we use a template parameter, what's the story > > for virtual functions (e.g. Object.toString)? They can't be > > templated. > > Good point. We need to think about that. > Passing buffers or sink delegates (like we already do for toString) is possible for some functions. For toString it works fine. Then implement to!RCString(object) using the toString(sink delegate) overload. For all other functions RC is indeed difficult, probably only possible with different manually written overloads (and a dummy parameter as we can't overload on return type)?
