struct S
{
    void* p;
}

void main()
{
    S s;
auto a = cast(void*)s; //Error: e2ir: cannot cast s of type S to type void*
}

Is there are a good reason for this being disallowed?

Reply via email to