On Thu, 24 Jun 1999, John Morrison wrote: > (Q. Can anybody out there name another language that did the same > thing? One answer is below my signature .. no fair peeking!) > > Somewhat obviously, in writing drivers (e.g., VGA), one wishes to > employ unsigned types -- 8-bit and 16-bit for "data," and (at least) > 32-bit for addresses. (So there -- thhhhbpt!) Properly the answer is Ada83. Ada95 addressed this problem. > Here's one semi-obvious candidate: > > (0) Have separate native methods for each and every Java type. > (1) Use Java shorts for reading/writing unsigned 8-bit quantities. > (2) Use Java ints for reading/writing unsigned 16-bit quantities. > (3) Use Java longs for reading/writing unsigned 32-bit > quantities/addresses. These are pretty typical of the solutions used by Ada83 vendors with their Unsigned_Types packages. I recall being highly irritated at one compiler vendor's choice that a 32-bit unsigned quantity was actually 64-bits. > (A. It's Ada!) Ada83. :) --joel Joel Sherrill, Ph.D. Director of Research & Development [EMAIL PROTECTED] On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Support Available (256) 722-9985 _______________________________________________ Kernel maillist - [EMAIL PROTECTED] http://jos.org/mailman/listinfo/kernel