1 #!/usr/local/bin/rune -x -d
3 # Demonstrate constant types. Constants in Rune are effectively what
4 # '#define BLAH 23' would be in C, except they are specifically typed.
6 # Demonstrate a resolve-time constant (the array size for fu[]). The
7 # resolver drills the resolution by executing the interpreter and requires
8 # a constant return value. Note that no global storage is available when
9 # doing this, but the resolver will shortcut through any variable assignments
10 # to avoid having to instantiate and fully initialize the global SemGroup.
15 const int charlie = fubar();
16 const int fu[charlie];
26 main(int ac, char **av)
28 stdio.stdout->show("fubar 55:", charlie);