Bug or case of hijacking protection ?

Basile B. via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 17 07:01:26 PDT 2016


Is this a bug or a case of hijacking protection ?

¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
struct S
{
     void test(void*, size_t){}
}

void test(ref S,void[]){}


void main()
{
     ubyte[] a;
     (*new S).test(a);
}
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨


More information about the Digitalmars-d-learn mailing list