Can't cast from void*

Kagamin spam at here.lot
Sat Feb 3 17:37:58 UTC 2018


---
interface A{}

void* a=cast(void*)5;
A b=cast(A)a; //ok
A c=cast(A)cast(void*)5; //error
---
Last line gives Error: cannot cast `void*` to `A`. Is it intended?


More information about the Digitalmars-d-learn mailing list