change mixins

BCS none at anon.com
Sun Feb 14 22:47:36 PST 2010


Hello sybrandy,

> Btw: I was doing this for a logging library that I was working on.  As
> one can deduce, when you have a lot of logging statements in your
> code, being able to leverage a mixin to cleanly enable/disable the
> functionality in conjunction with a compiler switch can have an impact
> on performance.

How were you doing it that the mixin keyword got in your way? I think the 
following should work right now:

version(WithLogging) mixin Logging!(whatever);

--
<IXOYE><





More information about the Digitalmars-d mailing list