mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 14:13:52 +01:00
11 lines
297 B
Plaintext
11 lines
297 B
Plaintext
// NOTE: Might change, but this is the current state of things
|
|
x := 10
|
|
t := thread(() {
|
|
sleep(0.25)
|
|
println(x.to_string())
|
|
})
|
|
&x = 20 // -> 20 20 because it modifies the original variable x
|
|
// x := 20 // -> 10 20 because it shadows the original variable x
|
|
t.await()
|
|
println(x.to_string())
|