Proposal: Automatic Resource Management
    Paul Benedict 
    pbenedict at apache.org
       
    Wed Sep  2 08:40:57 PDT 2009
    
    
  
Sean,
>> 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
http://docs.google.com? I may be wrong, but I thought you kept the
most-current copy on the web somewhere.
Paul
    
    
More information about the coin-dev
mailing list