2019-07-07 21:46:21 +02:00
|
|
|
// Build this example with
|
2019-09-21 20:38:12 +02:00
|
|
|
// v -live message.v
|
2019-07-07 21:46:21 +02:00
|
|
|
module main
|
|
|
|
|
|
|
|
import time
|
|
|
|
|
2019-09-21 20:38:12 +02:00
|
|
|
[live]
|
2019-07-07 21:46:21 +02:00
|
|
|
fn print_message() {
|
2019-09-21 20:38:12 +02:00
|
|
|
println('Hello! Modify this message while the program is running.')
|
2019-07-07 21:46:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
for {
|
|
|
|
print_message()
|
2019-09-21 20:38:12 +02:00
|
|
|
time.sleep_ms(500)
|
2019-07-07 21:46:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|