Weed Wrote:

> > Well, D class code here is not equivalent to C++ class code. D code has 
> > more features, namely, it's polymorphic: C.opAdd is able to work with 
> > classes, derived from C, while corresponding C++ code is unable to do so.
> 
> It is really true?

Of course.

> There opAdd is only for demonstration.

If your example has nothing in common with real-world tasks and needs, it's 
useless.

Reply via email to