static void arrays under garbage control?
captaindet via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Feb 25 18:20:37 PST 2015
On 2015-02-25 19:24, Adam D. Ruppe wrote:
>> does this warning only apply to dynamic void[] arrays but not to static void[CTconstant] arrays?
>
> Both of those will be scanned for pointers.
thanks, adam,
so i should always use
struct Stuff2Do{
static ubyte[1024*1024] buffer4speed = void; // even if untyped at this point
// more
}
to avoid that the GC is scanning my buffer for pointers?
More information about the Digitalmars-d-learn
mailing list