How does D improve design practices over C++?

Walter Bright newshound1 at digitalmars.com
Wed Oct 29 17:30:54 PDT 2008


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.



More information about the Digitalmars-d mailing list