-vgc Info ok?

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 19 06:17:15 PDT 2015


On Monday, 18 May 2015 at 14:34:38 UTC, ketmar wrote:
> it can throw "out of range" error, which is `new`ed.

Array access can also throw RangeError, but -vgc and @nogc don't 
mind that:
----
void main() @nogc
{
     int[] a;
     auto b = a[0];
}
----


More information about the Digitalmars-d-learn mailing list