RE: 'Unknown' and three-valued logic (was: Example where Euphoria ...)
- Posted by rforno at tutopia.com Nov 26, 2002
- 532 views
----- Original Message ----- From: Rom <kjehas at frisurf.no> Subject: Re: 'Unknown' and three-valued logic (was: Example where Euphoria ...) From: <dm31 at uow.edu.au> |C intially chose to represent a int by 16 bits, with first bit as |sign-bit. They could have reserved one bit as nil-bit (nil-flag), |meaning a int would have been in the range +/- 16384. >And Programmers, like me, would not be very happy with our > range oin each data type been halved for a flag that we would RARELY use. Argument does not count because now we have 32-bits. Argument counts, because you sometimes need to interface with other programs/machines, and they have one more bit... This is the same with Euphoria: EU integers ocasion some difficulties when interfacing C programs. Do you have any "simple" solution for handling something as simple as an (A and B and C) rule? (what people normally would regard as a rule) (post Sent: Saturday, November 23, 2002 10:50 PM Subject: Unknown as a legal var state?) Rom Example case: Simplified rules for unemployments benefits. How to program such rules? To qualify for unemployment benefits.... 1) you must be a national citizen (N) 2) you must be unemployed (U) 3) you must have earned more than $10000 previous year (I) 4) all facts must be documented ==^^=============================================================== This email was sent to: rforno at tutopia.com