www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - cast statement

"I am unable to find out how the cast statement works.",
"I tried a bit, but this is all I came up with.";

if(~~~~~cast(bit)(-1+(~1-~1+1-1)/1))
{
   cast(char*)(&*&*&*&*"foo" \b \a \r);

} else {

   7331 < cast(bit)1~2~3~A~B~C;
}

"Couldn't resist.";
May 05 2004