LWN.net Logo

Java is new Tk

Java is new Tk

Posted Aug 28, 2011 23:03 UTC (Sun) by foom (subscriber, #14868)
In reply to: Java is new Tk by andresfreund
Parent article: HP dropping webOS devices

The problem is that it's not actually predictable. It only *seems* predictable. But you could create a reference cycle pointing to your object, and all of a sudden, whoops, doesn't get destructed when you thought it was going to anymore.

There's a reason that Python introduced the "with" statement: to allow for easily-written *actually* predictable resource closing.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds