Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
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: