Old problem with performance

Yigal Chripun yigal100 at gmail.com
Mon Feb 9 06:06:05 PST 2009


Weed wrote:
> Christopher Wright пишет:
>> Weed wrote:
>>> And if I need some different such combinations? For each it is necessary
>>> to write such 8-10 lines? This is terrible!
>> You need to add those lines for every method you need virtual dispatch
>> with for your value type. It's an overhead of three lines per method,
>> two for the interface (declaration and member), and one extra line where
>> you create the struct. If you're reasonable, your struct constructor
>> will create a default instance.
>>
>> So, it's not that great an overhead.
>
> Do not be surprised that so many continue to write in C++! :)

huh?

there are still billions of people that continue smoking even though the 
problems that causes are well known.

people have bad habits - using C++ instead of proper languages (like D) 
is one of them. Unless a person wants to be cured, nothing can be done 
to cure him of such a strong addiction.

I hope you too will one day be cured of the illness that is C++.



More information about the Digitalmars-d mailing list