shithub: limbobyexample

ref: be5690bf05707107bc6f02005af82399b0c1c655
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;
}