From b652cb57cc771a318dba8ddc1d200b31e1ec93af Mon Sep 17 00:00:00 2001 From: mark Date: Tue, 23 May 2023 23:37:58 +0200 Subject: [PATCH] chmod -x'd examples and added modify_variable.mers example (parser changed). note: some examples might be broken because of this --- examples/custom_type.mers | 0 examples/gui.mers | 0 examples/iterators.mers | 0 examples/macro.mers | 0 examples/mersrandr.mers | 0 examples/modify_variable.mers | 9 +++++++++ examples/musicdb_remote.mers | 0 examples/my_macro.mers | 0 examples/thread.mers | 0 9 files changed, 9 insertions(+) mode change 100755 => 100644 examples/custom_type.mers mode change 100755 => 100644 examples/gui.mers mode change 100755 => 100644 examples/iterators.mers mode change 100755 => 100644 examples/macro.mers mode change 100755 => 100644 examples/mersrandr.mers create mode 100644 examples/modify_variable.mers mode change 100755 => 100644 examples/musicdb_remote.mers mode change 100755 => 100644 examples/my_macro.mers mode change 100755 => 100644 examples/thread.mers diff --git a/examples/custom_type.mers b/examples/custom_type.mers old mode 100755 new mode 100644 diff --git a/examples/gui.mers b/examples/gui.mers old mode 100755 new mode 100644 diff --git a/examples/iterators.mers b/examples/iterators.mers old mode 100755 new mode 100644 diff --git a/examples/macro.mers b/examples/macro.mers old mode 100755 new mode 100644 diff --git a/examples/mersrandr.mers b/examples/mersrandr.mers old mode 100755 new mode 100644 diff --git a/examples/modify_variable.mers b/examples/modify_variable.mers new file mode 100644 index 0000000..823d008 --- /dev/null +++ b/examples/modify_variable.mers @@ -0,0 +1,9 @@ +// NOTE: Might change, but this is the current state of things +x = 10 +t = thread(() { + sleep(0.25) + println(x.to_string()) +}) +// if this was x = 20 instead, the thread would still be using the old x = 10 value. +&x = 20 +t.await() diff --git a/examples/musicdb_remote.mers b/examples/musicdb_remote.mers old mode 100755 new mode 100644 diff --git a/examples/my_macro.mers b/examples/my_macro.mers old mode 100755 new mode 100644 diff --git a/examples/thread.mers b/examples/thread.mers old mode 100755 new mode 100644