>> why not making append() check for nelem, or make it work for >> no-records case? >I believe append() should not be called for nelem == 0 at all. append() get called from other places too. i feel it easier to understand and debug if we make append() work with nelem == 0. itojun