shithub: limbobyexample

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