mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 05:43:53 +01:00
chmod -x'd examples and added modify_variable.mers example (parser changed). note: some examples might be broken because of this
This commit is contained in:
parent
9d3a149648
commit
b652cb57cc
0
examples/custom_type.mers
Executable file → Normal file
0
examples/custom_type.mers
Executable file → Normal file
0
examples/gui.mers
Executable file → Normal file
0
examples/gui.mers
Executable file → Normal file
0
examples/iterators.mers
Executable file → Normal file
0
examples/iterators.mers
Executable file → Normal file
0
examples/macro.mers
Executable file → Normal file
0
examples/macro.mers
Executable file → Normal file
0
examples/mersrandr.mers
Executable file → Normal file
0
examples/mersrandr.mers
Executable file → Normal file
9
examples/modify_variable.mers
Normal file
9
examples/modify_variable.mers
Normal file
@ -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()
|
0
examples/musicdb_remote.mers
Executable file → Normal file
0
examples/musicdb_remote.mers
Executable file → Normal file
0
examples/my_macro.mers
Executable file → Normal file
0
examples/my_macro.mers
Executable file → Normal file
0
examples/thread.mers
Executable file → Normal file
0
examples/thread.mers
Executable file → Normal file
Loading…
Reference in New Issue
Block a user