Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!gatech!prism!jgb From: jgb@prism.gatech.EDU (James G. Baker) Newsgroups: comp.databases Subject: Re: Clipper and bitwise operators Message-ID: <31346@hydra.gatech.EDU> Date: 14 Jun 91 02:28:37 GMT References: <1991Jun13.142852.5436@vax5.cit.cornell.edu> Distribution: comp Organization: Georgia Institute of Technology Lines: 21 In article <1991Jun13.142852.5436@vax5.cit.cornell.edu> b39y@vax5.cit.cornell.edu writes: >I've got a question for Clipper users. I'm running in Clipper 5.01, and want >to use a bitmask-style integer for checking access to parts of my code. I assume they did not want bit-wise operators since having a binary byte (usually less than 32) in a .DBF can mess things up (like a stray EOF, etc). You could interface some C functions to do it, but (if it were me) I would just use a character mask instead of a bit-mask. It might take eight bytes instead of 1, but it sure makes debugging easier and memory is cheap. Good luck. -J Baker -- BAKER,JAMES G - Undergraduate Lab Instructor, School of Electrical Engineering ____ _ _ Georgia Institute of Technology, Atlanta Georgia, 30332 | | _ |_) uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!jgb (_|. |_). |_). Internet: jgb@prism.gatech.edu, jgb@ee, jgb@eecom, jgb@cc