Proposal: Automatic Resource Management

Paul Benedict pbenedict at
Wed Sep 2 08:40:57 PDT 2009


>> In addition to table.iterator() being disposed, if Row implements
>> Disposable, then each row would be disposed after each iteration.  The
>> variable table would not be disposed unless the following syntax is used:
>> try (Table table = new Table("Ex"); Row row: table) {
>> }

How about this:

try (Table table = new Table("Ex")) {
    for (Row row : table) {

Wouldn't this allow the table to be automatically be disposed, plus
automatically dispose each row?

PS: Josh, didn't you once publish your ARM proposal under I may be wrong, but I thought you kept the
most-current copy on the web somewhere.


More information about the coin-dev mailing list