Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!ZERMATT.LCS.MIT.EDU!RWS From: RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) Newsgroups: comp.windows.x Subject: XQueryColors Message-ID: <19880715122923.9.RWS@KILLINGTON.LCS.MIT.EDU> Date: 15 Jul 88 12:29:00 GMT References: <14395@shemp.CS.UCLA.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 13 Date: 14 Jul 88 17:39:46 GMT From: tek@CS.UCLA.EDU How do you use the Xlib function XQueryColor(s) in X11 R2? More specifically, why doesn't this function return "Status"? Xlib takes the attitude that "programmer errors" are not returned via a status condition, they go through the error handler. Only "expected" errors on synchronous calls are reflected in status. Since the only errors from XQueryColors are from passing bogus arguments, these are viewed as programmer errors. One can, of course, construct counter-examples to any such rule, but that's the reasoning behind the interface.