Chain two different struct specialization

bearophile bearophileHUGS at lycos.com
Fri Mar 1 07:08:20 PST 2013


> void main() {
> 	immutable s1 = MyStruct(firstWeights,  10,  8);
> 	immutable s2 = MyStruct(firstWeights,   9, 10);
> 	immutable s3 = MyStruct(secondWeights,  9, 10);
>
>      import std.stdio;
> 	writeln(likeness(s1, s2));

Sorry for the mix of tabs and spaces. The crappy editor I have 
used now has not replaced your tabs with spaces...

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list