Steven Schveighoffer Wrote:
> On Fri, 18 Feb 2011 09:43:19 -0500, Erik Meer wrote:
>
> > Does using interfaces extensively have a performance drawback like using
> > inheritance has?
> >
> > Why do I ask? I was thinking about adopting a coding practice where I
> > define explicit interfaces
As mentioned by Steven there are other ways to this without Interfaces.
Templates are one very nice way and you may also find:
AutoImplements
BlackHole
WhiteHole
http://digitalmars.com/d/2.0/phobos/std_typecons.html#AutoImplement
Useful. I thought there was also going to be something that would
On Fri, 18 Feb 2011 09:43:19 -0500, Erik Meer wrote:
Does using interfaces extensively have a performance drawback like using
inheritance has?
Why do I ask? I was thinking about adopting a coding practice where I
define explicit interfaces for all public aspects of my classes, and
then c
Erik Meer Wrote:
> Does using interfaces extensively have a performance drawback like using
> inheritance has?
>
> Why do I ask? I was thinking about adopting a coding practice where I define
> explicit interfaces for all public aspects of my classes, and then couples
> the interfaces closely
Does using interfaces extensively have a performance drawback like using
inheritance has?
Why do I ask? I was thinking about adopting a coding practice where I define
explicit interfaces for all public aspects of my classes, and then couples the
interfaces closely to unit tests. Then, whenever