Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import glib.Timeout;
  2. import std.stdio;
  3. import std.functional;
  4.  
  5. void main(){
  6. auto tLib = &t_func;
  7. Timeout t = new Timeout(tLib.toDelegate,1,true);
  8.  
  9. //keep window open
  10. while(true){
  11. continue;
  12. }
  13. }
  14.  
  15. bool t_func(){
  16. writeln("Hello World");
  17. stdout.flush();
  18. return true;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement