Eliminating code duplication for static/nonstatic functions
Walter Bright
newshound2 at digitalmars.com
Thu Sep 19 13:32:06 PDT 2013
On 9/19/2013 12:44 PM, Benjamin Thaut wrote:
> Can't we make the compiler deduce the static attribute? If a template method or
> a method of a template struct / class does not access any of its members it
> becomes static automatically?
static/nonstatic member functions have different ABIs, so no, it would not work.
More information about the Digitalmars-d
mailing list