Re: [EXI LC comments] Boolean

John,

Indeed you can bittest on the second bit. I must admit anyway that I find
this violating the "principle of least surprise"

Regards,

Mohamed

On Wed, Nov 26, 2008 at 10:27 PM, John Schneider <
john.schneider@agiledelta.com> wrote:

>  Mohamed,
>
> Thank you for your suggestion regarding the order of the bits in the 2-bit
> unsigned Integer representation used to distinguish between lexical
> variances of the Boolean type. The current representation allows bit-testing
> of the first bit to provide the value of the Boolean. It is not clear that
> changing the representation to allow bit-testing of the second bit rather
> than the first bit would provide a notable benefit.
>
> Both representations seem equally capable, so our current plan is to keep
> the current representation. Please let us know if we've misunderstood some
> aspect of your suggestion.
>
>     Thank you,
>
>     John Schneider
>     AgileDelta, Inc.
>     http://www.agiledelta.com
>
>
>  From: Innovimax SARL <innovimax@gmail.com<innovimax@gmail.com?Subject=Re%3A%20%5BEXI%20LC%20comments%5D%20Boolean&In-Reply-To=%253C546c6c1c0809191016w22e6f908na8e7ef9158b941f0%40mail.gmail.com%253E&References=%253C546c6c1c0809191016w22e6f908na8e7ef9158b941f0%40mail.gmail.com%253E>>
>
> Date: Fri, 19 Sep 2008 19:16:37 +0200
> Message-ID: <546c6c1c0809191016w22e6f908na8e7ef9158b941f0@mail.gmail.com>
> To: public-exi-comments@w3.org<public-exi-comments@w3.org?Subject=Re%3A%20%5BEXI%20LC%20comments%5D%20Boolean&In-Reply-To=%253C546c6c1c0809191016w22e6f908na8e7ef9158b941f0%40mail.gmail.com%253E&References=%253C546c6c1c0809191016w22e6f908na8e7ef9158b941f0%40mail.gmail.com%253E>
>
>
> In 7.1.2 Boolean
>
> Please consider instead of
>
> [[
> Otherwise, when pattern facets are available in the schema datatype,
> Boolean datatype representation is able to distinguish values not only
> arithmetically (0 or 1) but also between lexical variances ("0", "1",
> "false" and "true"), and values typed as Boolean are represented as
> n-bit unsigned integer (7.1.9 n-bit Unsigned Integer), where n is two
> (2) and the value zero (0), one (1), two (2) and three (3) each
> represents value "false", "0", "true" and "1".
> ]]
>
> having
>
> [[
>  the value zero (0), one (1), two (2) and three (3) each represents
> value "0", "1", "false", "true".
> ]]
>
> such as bittesting the last bit could give the right result
>
> Regards,
>
> Mohamed ZERGAOUI
> --
> Innovimax SARL
> Consulting, Training & XML Development
> 9, impasse des Orteaux
> 75020 Paris
> Tel : +33 9 52 475787
> Fax : +33 1 4356 1746http://www.innovimax.fr
> RCS Paris 488.018.631
> SARL au capital de 10.000 €
>
>


-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 €

Received on Wednesday, 26 November 2008 21:36:36 UTC