News for hackers. Stuff that matters.
Re:Node-Qt: Build native apps using Node.js + Qt (Windows, M... by firefoxman1 on Monday April 09, 2012 @04:20PM (#3819013)
In the sample on that page, it says:

   // Prevent objects from being GC'd
   global.app = app;
   global.window = window;
Why do you need to do that? I thought that as long as there were still references to an object, it isn't GC'd.
Re:Node-Qt: Build native apps using Node.js + Qt (Windows, M... by arturadib on Monday April 09, 2012 @07:31PM (#3819836)
Yeah it's just in case there are no surviving references to those vars. For example in the hello world code app gets GC'd unless it's in a callback in setTimeout().