"atomic" constants
- Posted by =?iso-8859-1?Q?JesusC_-_Jes=FAs_Consuegra?= Jul 03, 1998
- 625 views
Hi, me again. It looks like developping a wrapper is a good way to learn Euphoria with some level of depth... Now that I've mastered a little the data access to structures (thanks David), I have a question on constants: I'd like to have all constants predefined in this way (assuming all them are 32 bit): constant IN_CLASSC_NET = #FFFFFF00 constant IN_CLASSC_NSHIFT = 8 constant IN_CLASSC_HOST = #000000FF constant INADDR_LOOPBACK = #7F000001 constant INADDR_NONE = #FFFFFFFF I supposed that this would be adequate, but I've found that if I do a printout of INADDR_NONE inside the debugger, I get 4.29497e+009, instead of the "-1" that was intended, so the comparisons never match (and I'm getting progressively insane).... Shouldn't I use constants in this way?. Thanks. Jesus-winsock-is-closer.