view 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 source


/*
 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;
}