summaryrefslogtreecommitdiffhomepage
path: root/example/example_02_nectar/example.nc
diff options
context:
space:
mode:
Diffstat (limited to 'example/example_02_nectar/example.nc')
-rw-r--r--example/example_02_nectar/example.nc16
1 files changed, 7 insertions, 9 deletions
diff --git a/example/example_02_nectar/example.nc b/example/example_02_nectar/example.nc
index fdaadcd..b308bab 100644
--- a/example/example_02_nectar/example.nc
+++ b/example/example_02_nectar/example.nc
@@ -1,15 +1,13 @@
extern exit;
-trait foo {
- let exit();
-};
-
-let foo.exit() {
- exit(0);
+const terminate()
+{
+ let EXIT_TERMINATED = 0x100;
+ exit(EXIT_TERMINATED);
}
-const main() {
- let self := 0;
- foo.exit();
+const main()
+{
+ terminate();
return 0;
}