Passing structs to functions

phant0m via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 2 12:40:53 PDT 2016


On Saturday, 2 July 2016 at 19:25:37 UTC, ketmar wrote:
> note the first "()", though: this is effectively a template 
> function, which compiler will instantiate either with "ref" or 
> without it.

Yeah, I've noticed it. Always using function template for this 
use case seems like a weird idea.


More information about the Digitalmars-d-learn mailing list