diff options
| author | seh <henesy.dev@gmail.com> | 2019-03-18 03:44:58 -0500 |
|---|---|---|
| committer | seh <henesy.dev@gmail.com> | 2019-03-18 03:44:58 -0500 |
| commit | be5690bf05707107bc6f02005af82399b0c1c655 (patch) | |
| tree | c1bf423876c63ada9ff4dc5091720bc58d3afa98 /Modules/towns.m | |
| parent | 1dbebd5fe59f27106a4dfa553c9ee8b893d6008e (diff) | |
add work on modules example
Diffstat (limited to 'Modules/towns.m')
| -rw-r--r-- | Modules/towns.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/towns.m b/Modules/towns.m new file mode 100644 index 0000000..b9eab0a --- /dev/null +++ b/Modules/towns.m @@ -0,0 +1,14 @@ +include "persons.m"; + +Towns: module { + init: fn(); + mktown: fn(): ref Town; + + persons: Persons; + + Town: adt { + pop: array of ref Persons->Person; + name: string; + stringify: fn(t: self ref Town): string; + }; +}; |
