Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import glib.Timeout;
- import std.stdio;
- import std.functional;
- void main(){
- auto tLib = &t_func;
- Timeout t = new Timeout(tLib.toDelegate,1,true);
- //keep window open
- while(true){
- continue;
- }
- }
- bool t_func(){
- writeln("Hello World");
- stdout.flush();
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement