Use of templates to avoid redudancy of code

Mael mael.primet at gmail.com
Tue Jun 3 11:17:16 PDT 2008


> In case the issue is actually cleaning up the code, I would consider 
> making the action a delegate that you pass in to your algorithm (and 
> execute there).

This doesn't incur a penalty on the execution time ? Does it unfold the delegate as an inline function, or will there be calls to the delegate ?




More information about the Digitalmars-d-learn mailing list