"static" UFCS

Jacob Carlborg doob at me.com
Thu Jun 14 07:14:41 PDT 2012


On 2012-06-14 13:30, Gor Gyolchanyan wrote:

> It doesn't matter whether a function is a template or not. The only
> thing that matters is the number of instances it produces. A template
> function, which produces only one instance is equivalent to a
> non-template function. The function above can produce only one
> instance (unless overloaded).

Yeah, except when it's an instance method, which will make it 
non-virtual. In this case it's not though.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list