"Bart�omiej �." wrote in message news:slrnbcec3j.rh.swierczu@staticline881.toya.net.pl... > Hello, > I'm starting in Ada, and I can't use same operators (like xor, and) in > my programs. I need to count crc. In Java I was writting: > #v+ > ... > crc=(crctable[((crc>>8)^bufor[start+i++]) & 0xFF]^(crc<<8))&0xFFFF; > ... > #v- > What I should use instand of 'xor' and 'and' oparator (becouse in Ada > they are logical oparator, not binary). For example, I replace crc<<8 by > crc*256, and crc>>8 crc/256, but what about xor? You should check out 'modular types' and the standard package 'Interfaces'. What compiler are you using? If the typical GNAT/AdaGIDE combo these can be found under the Help->Language RM drop-down menu. Also, check out www.adapower.com and the 'Learn Ada' option will take you to link to a few free Ada95 books. Good luck!