comparison examples/c3/cast.c3 @ 300:158068af716c

yafm
author Windel Bouwman
date Tue, 03 Dec 2013 18:00:22 +0100
parents test/c3examples/cast.c3@d9df72971cbf
children
comparison
equal deleted inserted replaced
299:674789d9ff37 300:158068af716c
1
2 /*
3 Demo of how to type cast
4 */
5
6 module castdemo;
7
8 function int testcast()
9 {
10 var int a;
11 var int* b;
12 a = 3;
13
14 b = cast<int*>(a);
15
16 return 0;
17 }
18