Postblit not invokable with MyStruct(MyStruct()); ?

Mark Isaacson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 2 16:49:35 PDT 2014


@bearophile - Unless I'm missing something, alas, no. Neither A 
nor B is a subtype of the other. In particular, in the real code 
one is a CartesianVector and the other a PolarVector. For what 
it's worth, 'foo' is actually opBinary addition.

Thanks for the thought though.


More information about the Digitalmars-d-learn mailing list