shithub: limbobyexample

ref: 577f8a21ded3a49c799ee49b90508801f1361842
dir: /Modules/persons.b/

View raw version
implement Persons;

include "persons.m";

population: int;

init() {
	population = 0;
}

getpop(): int {
	return population;
}

mkperson(): ref Person {
	population++;
	return ref Person;
}

Person.stringify(p: self ref Person): string {
	return p.name;
}