On Sun, 29 Jun 2008 01:56:22 +0000, Moritz Warning wrote: > Ok, nvm. :) > > void* p = cast(void*) 1; > A a = cast(A) p; ok, a problem remains. How to do this at compile time?: static const T first = cast(T) cast(void*) 0; static const T second = cast(T) cast(void*) 1; ..doesn't work.