I don't like the idea of a new syntax for threads. The new parser supports anonymous functions. If it doesn't, it will briefly.
function my_thread() { for (int i = 0; i < 10; ++i) { show_message("Thread Running"); sleep(1000); } show_message("Thread Done"); }
var thread = thread_function(my_thread); Basically, leave the syntax modifications to supporting dynamic functions in general. A thread_start, thread_join, and thread_signal will follow from there.
|