view python/c3/examples/cast.c3 @ 226:240111e0456f

Work on named types
author Windel Bouwman
date Fri, 12 Jul 2013 17:25:31 +0200
parents 848c4b15fd0b
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;
}