Skip to content

Instantly share code, notes, and snippets.

@yutopp
Created October 22, 2014 14:28
Show Gist options
  • Save yutopp/39356f99326937898664 to your computer and use it in GitHub Desktop.
Save yutopp/39356f99326937898664 to your computer and use it in GitHub Desktop.
def main(): int
{
val a: mutable(int) = 10;
val b = 20;
val c = f( a * b );
p( c );
return 0;
}
template(T: type)
def f(val a: T): T
{
val v: mutable(T) = 150;
v = 10;
return a * v;
}
extern def mutable( val a :type ): type "rill_abababa";
extern def p( val i :int ): void "put_string2";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment