view test/c3examples/cast.c3 @ 284:05184b95fa16

Moved tests to seperate folder
author Windel Bouwman
date Fri, 15 Nov 2013 13:43:22 +0100
parents python/c3/examples/cast.c3@848c4b15fd0b
children d9df72971cbf
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;
}