NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
On 30.11.2009, at 21:53, Doug Lindholm wrote:
This is related to my interest in a zero-length Range. I may have an Array with values 1-10 and want to process a request for values > 10. I have code that gets indices from a binary search and creates a Range that is used to "section" the Array. Currently, I'm using nulls to handle zero-length results, but it would be much nicer to have empty Ranges and Arrays that would do the right thing.
My applications are similar. I don't use empty arrays explicitly, but they are useful for handling limiting cases such as this without special code.
Konrad.
netcdf-java
archives: