Slow performance compared to C++, ideas?

Walter Bright newshound2 at digitalmars.com
Sat Jun 8 09:39:32 PDT 2013


On 6/7/2013 8:59 PM, Manu wrote:
> Because they embody functionality, not just data. That's just how many many
> programmers write code.
> Go to university for a couple of years, see what they tell you... ;)
> Some of these systems can effectively be considered plugins. Consider
> OpenGL/DirectX? DirectSound/XAudio? Linux has a million back-end API's to choose
> from.
> I can see why many people feel it's natural to design their API's/systems that
> way, right or wrong.


So they don't need to be classes at all. It's not about embodying functionality 
vs data. It's about having a value type vs a polymorphic ref type.


More information about the Digitalmars-d mailing list