I do not know if I am missing something but consider:<div><br></div><div>struct Foo {</div><div> int r;</div><div> int i;</div><div> bool get() {</div><div> return true; // always return true</div><div> }</div><div>
alias get this;</div><div>}</div><div><br></div><div>So I am wondering how it would be possible to construct Foo from a bool?</div><div>Otherwise how would the compiler be able to figure out in what scenarios reverse conversion is possible and is intended.</div>
<div><br></div><div>Regards</div><div>- Puneet</div><div><br></div>