On Wed, 21 Dec 2005, Peter W. Draper wrote:
> > I've been thinking about the "datGetVC" problem over breakfast. How about
> > I change the definition of "maxval" to be the declared size of pntrs[]?
> > Then I can check that pntrs[] is large enough to hold the null and set
> > status bad if it isn't. Then the caller would know there was a problem and
> > be able to fix the code without overwriting random memory.
>
> That's better than the pain I've been through. Wonder if Mark is
> persuaded?
I retain a philosophical uneasiness on the grounds that I don't think
calls to a low-level library like HDS should return the same
information in more than one form. Perhaps though I shouldn't be
surprised that Tim favours a more TMTOWTDI approach. This is
probably just me being anal anyway - I'm certainly not going to
lodge any protest against this solution.
And I should say
> 1. Everyone reads the documentation (which surprises me since SUN92 is
> not up to date) and no core dumps ensue
I would have if I'd known it was there.
A merry christmas to all our readers - and like Peter says, Tim you
really should take a few hours off coding for a turkey sandwich or
something.
Mark
--
Mark Taylor Astronomical Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|