shithub: limbobyexample

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