summaryrefslogtreecommitdiff
path: root/Modules/README.md
diff options
context:
space:
mode:
authorseh <henesy.dev@gmail.com>2019-03-18 03:44:58 -0500
committerseh <henesy.dev@gmail.com>2019-03-18 03:44:58 -0500
commitbe5690bf05707107bc6f02005af82399b0c1c655 (patch)
treec1bf423876c63ada9ff4dc5091720bc58d3afa98 /Modules/README.md
parent1dbebd5fe59f27106a4dfa553c9ee8b893d6008e (diff)
add work on modules example
Diffstat (limited to 'Modules/README.md')
-rw-r--r--Modules/README.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/Modules/README.md b/Modules/README.md
new file mode 100644
index 0000000..93715d7
--- /dev/null
+++ b/Modules/README.md
@@ -0,0 +1,33 @@
+# Modules
+
+Limbo supports compartmentalization of functionality through the dynamic loading and unloading of names and definitions through modules.
+
+Disclaimer: At the time of writing I am not exceptionally well-versed with modules in Limbo. All assertions should be taken with a grain of salt.
+
+## Source
+
+###
+
+
+
+## Demo
+
+ ; modules
+ 0
+ 0
+ 1
+ 0
+ Name: Mars
+ Size: 2
+ Members:
+ → Spike
+ → Ed
+ ;
+
+## Exercises
+
+- Can you access `persons->population` from `modules`?
+- Could you make a global variable by placing said variable in its respective module definition?
+- What happens if you remove the `import` statements for `Person` and `Town` in various `.b` files?
+- What happens if you include `persons.m` in `modules.b`?
+- What happens if you include `persons.m` in `modules.b` and remove the include for `persons.m` in `towns.m`?