How does D improve design practices over C++?

Sean Kelly sean at invisibleduck.org
Wed Oct 29 19:10:29 PDT 2008


Walter Bright wrote:
> Frits van Bommel wrote:
>> Assuming it still allows heap-allocated objects, something like this 
>> will still work:
>> ----
>> class C {
>>     ubyte[16 * 1024 * 1024 - 1] memory;
>> }
> 
> The fix for that is to disallow objects with a large static size.

DMD assumes this anyway for its invariant -> object conversion routine, 
if I remember correctly, but the max size there is still pretty 
considerable.


Sean



More information about the Digitalmars-d mailing list