www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Regarding the -vgc switch

reply "bearophile" <bearophileHUGS lycos.com> writes:
I don't fully understand the recently introduced -vgc compiler 
switch. Is it expected for this code to not cause any warnings?


void main() {
     import std.bitmanip;
     BitArray a;
     a.length = 100;
}


Bye,
bearophile
Mar 27 2014
parent reply "Kagamin" <spam here.lot> writes:
The phobos code is precompiled, so the compiler doesn't diagnose 
it.
Mar 28 2014
parent "bearophile" <bearophileHUGS lycos.com> writes:
Kagamin:

 The phobos code is precompiled, so the compiler doesn't 
 diagnose it.
Right. So only allocations of templaes of Phobos can be detected. Bye, bearophile
Mar 28 2014