On Nov 14, 2012, at 1:54 PM, John Haddon wrote: > Would the other option be to just accept that it's an API change, and make > sure that invalid inputs (chend <= chbegin) throw an exception or print some > sort of warning so people can catch it and adjust their code as necessary? As > I said originally, for my small use of OIIO I'm more than happy to just > adjust my code, so other people's opinions would be much more important than > mine...
Indeed, that might even another good option. It would catch misuse right away and people could quickly patch and re-adjust. I'll think it over, make a proposed change, and post a code review. Then people can debate if anyone cares. My intuition is that, to the degree that this call is used at all (versus the older call that reads all channels), it's probably to request a single channel. I'm hoping that if my guess is wrong, somebody will chime in here before I do anything stupid. -- Larry Gritz [email protected] _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
