struct MyStruct(WEIGHTS) { string ... string ...
alias WEIGHTS weights; } double likeness(T,T1)(ref in T1, ref in T2) { // Here i do some complex calculus using struct fields // and using weights consts } enum FirstWeights : double { }
struct MyStruct(WEIGHTS) { string ... string ...
alias WEIGHTS weights; } double likeness(T,T1)(ref in T1, ref in T2) { // Here i do some complex calculus using struct fields // and using weights consts } enum FirstWeights : double { }