October 17, 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);
}
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
October 17, 2016
On Monday, 17 October 2016 at 14:01:26 UTC, Basile B. wrote:
> 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);
> }
> ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨

In the meantime I've found this BR:

 https://issues.dlang.org/show_bug.cgi?id=11836

It could be closed if it's an authentic anti-hijacking case...waitaing for your expertise.