blob: b1d6b50bd5c2022992e8e9c61163b7f3f5a82d08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
void foo(int a)
{
char ch;
ch = cast(char)a;
ch = cast(char)45;
ch = (char)a; // not a d cast
ch = (int) 45;
ch = cast(foo)*bar;
ch = cast(foo)-bar;
ch = cast(foo)+45;
ch = cast(foo)&45;
}
|