#!/usr/local/bin/rune -x # # Demonstrate typeof in a simple switch # import "sys"; import ; alias stdio.File *stdout = stdio.stdout; int main(int ac, char **av) { int x = 4; switch(typeof(int)) { case typeof(char): stdio.puts("type is char"); break; case typeof(int): stdio.puts("type is int"); break; default: stdio.puts("No clue"); break; } }