On Saturday, 24 June 2017 at 20:43:48 UTC, Igor Shirkalin wrote:
struct A
{
void * data; // void * type is just for example
// no matter what is here
}
I know that if I add constructor this(int)
struct A {
void * p;
this(int k) { p = cast(void*)k; }
}
auto a = cast(A) 23; // it works
Is it possible without such a constructor?
