Old problem with performance

Weed resume755 at mail.ru
Sun Feb 8 18:49:36 PST 2009


Rainer Deyke пишет:
> Michel Fortin wrote:
>> Polymorphism doesn't work very well while passing objects by value, even
>> in C++. This is called the slicing problem.
> 
> I have heard about the slicing problem.  I know what it is.  But in all
> my years of using C++ as my primary language, I have never actually
> encountered it.  I don't believe it actually exists.

I am absolutely agree with you.

Besides, slicing it is possible to detect in a compile time in many cases.

It can be too grandiloquent sounds, but in D us have deprived of one
degree of freedom - freedom to use a stack.



More information about the Digitalmars-d mailing list