ref: ce87687bbc9586ae0ecb1ea646596a76410ef568
parent: 747ef3dcbcb100c40659805d13d966540a892319
author: henesy <henesy.dev@gmail.com>
date: Mon Mar 11 18:32:42 EDT 2019
add beginnings of exceptions example
--- /dev/null
+++ b/Exceptions/README.md
@@ -1,0 +1,19 @@
+# Exceptions
+
+Limbo supports the throwing, catching, and custom definition of exceptions.
+
+The example in this section is a derivative of the function reference summary in the [Limbo Addendum](http://www.vitanuova.com/inferno/papers/addendum.pdf).
+
+## Source
+
+###
+
+
+
+## Demo
+
+
+
+## Exercises
+
+-
--- /dev/null
+++ b/Exceptions/exceptions.b
@@ -1,0 +1,21 @@
+implement Exceptions;
+
+include "sys.m";
+include "draw.m";
+
+sys: Sys;
+print: import sys;
+
+Exceptions: module {
+ init: fn(nil: ref Draw->Context, nil: list of string);
+};
+
+init(nil: ref Draw->Context, nil: list of string) {
+ sys = load Sys Sys->PATH;
+
+
+
+ raise "going down!";
+
+ exit;
+}