On 8/9/11 12:25 AM, Jonathan M Davis wrote:
On 8/8/11 10:41 PM, Jonathan M Davis wrote:
In this particular example, what goes in initFromParameters is specific
to Foo anyway. So, you'd have to write it by hand regardless.

If Andrei intended his answer this way, I don't quite see how it would
be an appropriate solution, as Andrej explicitly stated in his original
post: »I see that as needlessly implementing in user-code what the
compiler can already do on its own.«

[snip ginormous reply]

So you assumed initFromParameters would contain the initialization code for sum and average? In this case, using a mixin doesn't make any sense in the first place to me, since it would indeed be very specific to Foo and could be just a private function…

David

Reply via email to