Chain two different struct specialization
Andrea Fontana
nospam at example.com
Fri Mar 1 06:27:39 PST 2013
I'm trying to do something like this. I don't know whether or not
it's a good idea, i'm open to solutions and suggestions
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
{
}
More information about the Digitalmars-d-learn
mailing list