<p>In C++ it is possible to declare a class as follows<br>
class Foo {<br>
Foo(int x) { }<br>
}<br>
You can then use that constructor to implicitly convert int to Foo. E.g<br>
Foo x = 0; //equivalent to Foo(0)</p>
<p>Is there a way in D to do an implicit or explicit conversion from an integral type to a class?</p>
<p>-Mike</p>