diff python/c3/examples/cast.c3 @ 221:848c4b15fd0b

pointers
author Windel Bouwman
date Mon, 08 Jul 2013 22:21:44 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python/c3/examples/cast.c3	Mon Jul 08 22:21:44 2013 +0200
@@ -0,0 +1,18 @@
+
+/*
+ Demo of how to type cast
+*/
+
+package castdemo;
+
+function int testcast()
+{
+    var int a;
+    var int* b;
+    a = 3;
+    
+    b = cast<int*>(a);
+
+    return 0;
+}
+