Are D classes always garbage collected?

Froglegs lugtug at gmail.com
Wed Dec 21 22:43:32 PST 2011


> T emplace(T, Args...)(void[] chunk, Args args) if (is(T == 
> class))
> {
>   enforce(chunk.length >= __traits(classInstanceSize, T),
>          new ConvException("emplace: chunk size too small"));
> ...
>
> This fails whenever the size is greater or equal to the amount 
> of memory required :(

  Hum nevermind that, got confused by the IDE behavior.  Anway 
this emplace function crashes when I call it with a very 
meaningless callstack.


More information about the Digitalmars-d-learn mailing list