|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: iSCSI: Text/Operational keys: booleans and ranges
Luben Tuikov wrote:
>
> 1. Is it possible to make all Boolean Text/Operational keys's
> value range be ``0'' and ``1'', rather than the current
> ``Yes'', ``No''.
An old trick is to use bit 0 of the first (UTF-8) character.
This gets:
1 for "1", "Yes", "yes", "oui", "si" (but not "ja", "da" or "hai")
0 for "0", "No", "non" (but not "ei")
Of course, it also allows great opportunity for obfuscation ("maybe" is
yes), and must therefore be a good thing. B-)
Daniel Smith
--
IBM Almaden Research Center, 650 Harry Road, San Jose, CA 95120-6099, USA
K65B/C2 Phone: +1(408)927-2072 Fax: +1(408)927-3010
Home Last updated: Tue Mar 12 13:18:07 2002 9058 messages in chronological order |