Problem: handling a function dependent on release mode.

Jonathan M Davis jmdavisProg at gmx.com
Sun Jul 22 11:37:51 PDT 2012


On Sunday, July 22, 2012 18:25:58 Namespace wrote:
> On Sunday, 22 July 2012 at 16:19:29 UTC, Jacob Carlborg wrote:
> > On 2012-07-21 19:11, Namespace wrote:
> >> Equally when they are passed as normal parameters.
> > 
> > Really? I didn't know that.
> 
> Really. Try it. ;)

Yeah. Don't have them be template parameters unless you need to, otherwise you 
get a different template instantiation _every_ time that you call the function.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list