Using opDispatch as *magic* getter/setter. Possible or not?

Kagamin spam at here.lot
Thu Mar 31 11:02:43 PDT 2011


Steven Schveighoffer Wrote:

> The issue is that you can't have two templates with the same exact  
> template parameters, even if they have different function parameters.   
> This is because the compiler first instantiates the template, then calls  
> the function.

If two template instances have the same exact template parameters, it's one instance, isn't it? There's no need to instantiate it twice.


More information about the Digitalmars-d-learn mailing list