langs a-z

This commit is contained in:
Ingy döt Net 2013-04-10 22:43:41 -07:00
parent db842d013d
commit d066446780
11389 changed files with 98361 additions and 1020 deletions

View file

@ -0,0 +1,33 @@
bundle Default {
class MyClass {
@var : Int;
New() {
}
method : public : SomeMethod() ~ Nil {
@var := 1;
}
method : public : SetVar(var : Int) ~ Nil {
@var := var;
}
method : public : GetVar() ~ Int {
return @var;
}
}
class Test {
function : Main(args : String[]) ~ Nil {
inst := MyClass->New();
inst->GetVar()->PrintLine();
inst->SomeMethod();
inst->GetVar()->PrintLine();
inst->SetVar(15);
inst->GetVar()->PrintLine();
}
}
}